Skip to content

Instantly share code, notes, and snippets.

@theptrk
Created March 30, 2023 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theptrk/d849b0c175be5c12c972c00f21091422 to your computer and use it in GitHub Desktop.
Save theptrk/d849b0c175be5c12c972c00f21091422 to your computer and use it in GitHub Desktop.
print("""
Find the supported major python version on cookiecutter-django
https://github.com/cookiecutter/cookiecutter-django
Find the supported minor python version on heroku
https://devcenter.heroku.com/articles/python-support#supported-runtimes
""")
version = input("What is the latest supported version? ")
print(f"$ pyenv install {version}; -- to install ")
print(f"$ pyenv versions -- to check installation ")
print(f"$ PYENV_VERSION={version} python --version -- to check python")
print(f"$ PYENV_VERSION=3.9.6 cookiecutter https://github.com/pydanny/cookiecutter-django")
print(f"$ cd <project_name>")
print(f"$ echo \"{version}\" > .python-version -- to set default")
print(f"$ pyenv version -- to check default")
print(f"$ python -m venv env")
print(f"$ source env/bin/activate")
print(f"$ pip install -r requirements/local.txt")
print(f"$ git init")
print(f"$ pre-commit install")
print(f"$ git add .")
print(f"$ git commit -m 'initial commit: django cookiecutter'")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment