Opened 10 years ago

Closed 9 years ago

#1507 closed defect (worksforme)

running - command line parameters are lost under windows

Reported by: scott_list@… Owned by: adrian
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: UI/UX:


I have django-admin's directory in my DOS Path:

I'm in c:\tmp
I run: 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

I don't know if this is an issue with my installation or django.

If I specify:
python c:\python24\....\ startproject myproject
then it works fine and I can then run the server in the myproject directory.

Change History (1)

comment:1 Changed 9 years ago by nasahitzi@…

  • Resolution set to worksforme
  • Status changed from new to closed

This problem is related to your Windows environment setup. See the discussion here:

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" %*


This fixed the problem for me.

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