Google Groups

Re: django-admin.py startproject mysite


Daisy Apr 30, 2011 7:16 AM
Posted in group: Django users
I have just did what you said and  the result was (no project created)
and the output was:
--------------------------------------------


Usage: django-admin.py subcommand [options] [args]

Options:
  -v VERBOSITY, --verbosity=VERBOSITY
                        Verbosity level; 0=minimal output, 1=normal
output,
                        2=all output
  --settings=SETTINGS   The Python path to a settings module, e.g.
                        "myproject.settings.main". If this isn't
provided, the
                        DJANGO_SETTINGS_MODULE environment variable
will be
                        used.
  --pythonpath=PYTHONPATH
                        A directory to add to the Python path, e.g.
                        "/home/djangoprojects/myproject".
  --traceback           Print traceback on exception
  --version             show program's version number and exit
  -h, --help            show this help message and exit

Type 'django-admin.py help <subcommand>' for help on a specific
subcommand.

Available subcommands:
  cleanup
  compilemessages
  createcachetable
  dbshell
  diffsettings
  dumpdata
  flush
  inspectdb
  loaddata
  makemessages
  reset
  runfcgi
  runserver
  shell
  sql
  sqlall
  sqlclear
  sqlcustom
  sqlflush
  sqlindexes
  sqlinitialdata
  sqlreset
  sqlsequencereset
  startapp
  startproject
  syncdb
  test
  testserver
  validate
--------------------------------------------------------

while surfing the net I found this solution, write in the console

python C:\Python27\Scripts\django-admin.py startproject mysite


I don't know if there is another solution instead of writing the above
line every time or not.

thanks for help.