Opened 19 years ago
Closed 18 years ago
#1507 closed defect (worksforme)
running django_admin.py - command line parameters are lost under windows
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Management commands) | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I have django-admin's directory in my DOS Path:
Path=<snipped>;C:\Python24\Lib\site-packages\Django-0.91-py2.4.egg\django\bin;<snipped>
I'm in c:\tmp
I run:
django-admin.py startproject myproject
It gives me back the usage statment.
I modified django-admin to print argv and it comes back as a list with a single string in it, being the full path to django-admin.py.
I don't know if this is an issue with my installation or django.
If I specify:
python c:\python24\....\django-admin.py startproject myproject
then it works fine and I can then run the server in the myproject directory.
This problem is related to your Windows environment setup. See the discussion here:
http://groups-beta.google.com/group/django-users/browse_thread/thread/51ee13bb5690f63d
where this solution is proposed:
This fixed the problem for me.