Opened 18 years ago

Closed 17 years ago

#1507 closed defect (worksforme)

running django_admin.py - command line parameters are lost under windows

Reported by: scott_list@… 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.

Change History (1)

comment:1 by nasahitzi@…, 17 years ago

Resolution: worksforme
Status: newclosed

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:

Alex Li Dec 20, 6:51 pm

I think there might be something wrong in your .py extension to
python.exe linking in Windows setup. Specifically it seems like your
python script is working but the arguments after the first one is not
being passed on. Did you have %* at the end, like this?

"D:\Python24\python.exe" "%1" %*

HTH,
Alex

This fixed the problem for me.

Note: See TracTickets for help on using tickets.
Back to Top