Thank you for your feed back.
Big big newbie mistake from my part. I didn't understand well the
tutorial book from where I had to run 'django-admin.py startproject
mysite'.
django commands run fine from the system path.
Thanks.
I was a newbie, still I'm, but wiser than yesterday.
WG.
On Thu, 2006-12-21 at 12:00 -0500, Todd O'Bryan wrote:
On Thu, 2006-12-21 at 08:53 -0800, Wiston Guzman wrote:
> [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import django
> >>> django.VERSION
> (0, 96, 'pre')
> >>> django-admin.py startproject mysite
>   File "<stdin>", line 1
>     django-admin.py startproject mysite
>                                ^
> SyntaxError: invalid syntax
> >>>
Aha! You run django-admin.py from the actual command line, not from
within Python. This means that you could have regular PATH issues in
addition to PYTHONPATH issues.

Just figure out the actual path to django-admin.py and it should work.
Something like:

$ /usr/lib/python2.4/site-packages/django/bin/django-admin.py
startproject mysite

(all of that is on one line)

Todd

>


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to