Tuesday, June 22, 2010

Re: Newbie Question about django-admin.py startproject

'import django' is a command for the Python interpreter.

'django-admin.py startproject testsite' is a standard shell command.

Just open up a console window, and type the latter into it. If it
doesn't work, it means your PATH variable doesn't contain the Django
sources.

On 23 June 2010 15:27, Jacob Shiach <kingjacob@gmail.com> wrote:
> Ok, I am trying to start a project with Django and failing miserably.
>
> I open Python IDLE, Type "import django" then  type "django-admin.py
> startproject testsite" and get a SyntaxError:invalid syntax.
>
> Does anyone know where I am going wrong here?
>
> Note: I installed both Python 2.6.5 and Djang 1.1.1 with the Ubuntu
> package manager.
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment