First tutorial - Not off to a good start :(
I've just installed python-django from my ubuntu repositories and tried my luck at the tutorial here: http://docs.djangoproject.com/en/dev/intro/tutorial01/ I tried running django-admin.py startproject mysite but discovered it not to be on my system path. The tutorial says "If it’s not on your path, you can find it in site- packages/django/bin, where `site-packages` is a directory within your Python installation." but this location doesn't seem to exist. I did find it here /usr/lib/python-django/bin/django-admin.py and tried to run the specified command like so... sudo ./usr/lib/python-django/bin/django-admin.py startproject mysite which returns... sudo: ./usr/lib/python-django/bin/django-admin.py: command not found I'm not a seasoned linux user, but i can't see what I'm doing wrong here. Could somebody point me in the right direction? Thanks. --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: First tutorial - Not off to a good start :(
Ah yes, I see what you mean about the dot (.) I still seem to have no luck running the script though... l...@leke ~/Projects/cms/django $ /usr/lib/python-django/bin/django- admin.py startproject mysite bash: /usr/lib/python-django/bin/django-admin.py: Permission denied l...@leke ~/Projects/cms/django $ sudo /usr/lib/python-django/bin/ django-admin.py startproject mysite [sudo] password for leke: sudo: /usr/lib/python-django/bin/django-admin.py: command not found I forgot to add, if I type import django in the python interpreter, I don't get any errors so I guess the install went ok. --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: First tutorial - Not off to a good start :(
> The script seems to be missing the x bits for execution. > Try > $ python /usr/lib/python-django/bin/django-admin.py startproject mysite You were right. I forgot all about needing to call python. Thanks to you both for your help. --~--~-~--~~~---~--~~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---