0

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

hucuhy
  • 809
  • 3
  • 9
  • 15

1 Answers1

2

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?

Community
  • 1
  • 1
Roberto
  • 8,586
  • 3
  • 42
  • 53