Tutorial should tell Windows users to run 'python django-admin.py'
|Reported by:||Hourann Bosci <hourannb@…>||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
- run pip install Django
- now running python django-admin.py works, but django-admin.py doesn't (due to the different sys.path)
Change History (14)
comment:1 Changed 3 years ago by Hourann Bosci <hourannb@…>
- Has patch set
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
Changed 2 years ago by timo
comment:12 Changed 2 years ago by Tim Graham <timograham@…>
- Resolution set to fixed
- Status changed from new to closed