wsvincent / djangoforprofessionals_30

Source code for the 3.0 edition of Django for Professionals.
MIT License
23 stars 14 forks source link

Python version is set to 3.8, not 3.7 as in book and example in Pipfile Ch2 i #2

Open EelcoA opened 3 years ago

EelcoA commented 3 years ago

After 'pipenv install django==3.0.1' the python-version is set to 3.8, not 3.7:

[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[packages]
django = "==3.0.1"

[dev-packages]

[requires]
python_version = "3.8"
EelcoA commented 3 years ago

Later, this seemed to cause issues with installing psycopg:

$ docker-compose exec web pipenv install psycopg2-binary==2.8.4 Warning: Python 3.8 was not found on your system... Neither 'pyenv' nor 'asdf' could be found to install Python. You can specify specific versions of Python with: --python

Changing the python version in Dockerfile:

FROM python:3.8

and rebuilding (dockercompose up --build) repaired tis