Opened 12 years ago

Closed 12 years ago

#19199 closed Uncategorized (invalid)

SyntaxError creating a project

Reported by: qiubox Owned by: nobody
Component: Documentation Version: 1.4
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

Using windows 7
Console cmd
python
testing django installed OK
but trying create a project:
django-admin.py startproject mysite
and return me
File "<stdin>", line 1
django-admin.py startproject mysite


SyntaxError: invalid syntax

Change History (1)

comment:1 by Łukasz Rekucki, 12 years ago

Resolution: invalid
Status: newclosed

django-admin.py is a command line utility, so you have to run in the console, not inside Python interactive session. That's also what the tutorial tells you to do:

From the command line, cd into a directory where you'd like to store your code, then run the following command:

Please also note, that this tracker is for reporting bugs, not usage questions. You'll get much better and faster answers using other channels, see Getting Help.

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