Tutorial should tell Windows users to run 'python django-admin.py'
|Reported by:||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
On Windows, when running Django with virtualenv, users need to be told to invoke the Python interpreter with django-admin.py as an argument. Currently the tutorial says to just type
django-admin.py, which runs the instance of Python from the Windows file association (not the one in the virtual environment).
When that happens (running the associated python.exe rather than the virtualenv one), the module paths for the virtual environment aren't set, so the interpreter won't find the Django libraries and will throw an ImportError.
Original problem report here: https://groups.google.com/d/msg/django-users/EKRJWAe1znk/v_l9HV306cIJ
Steps to reproduce:
- install Python with one of the Windows installers
- download virtualenv, create and activate an environment
pip install Django
- now running
python django-admin.pyworks, but
django-admin.pydoesn't (due to the different
Change History (14)
comment:1 Changed 4 years ago by
|Patch needs improvement:||unset|