hucuhy
hucuhy

Reputation: 829

Python command line tool can't understand subcommands

Python command line tool can't understand subcommands on my enviroment.

For example, I run this command, but prompt print Usage. It doesn't understand subcommands.

django-admin.py startproject mysite

Please advise me.

My environment is 2.7.6 on windows

Upvotes: 0

Views: 72

Answers (1)

Roberto
Roberto

Reputation: 9090

Try this:

python c:\path_to_django_installation\django-admin.py startproject mysite

In windows, by default, the O.S. doesn't know how to execute python scripts.

To get Windows runs automatically your Python scripts take a look to this post: How to execute Python scripts in Windows?

Upvotes: 2

Related Questions