you can use both methods.If you are getting a permission denied error by giving full path, then you have to change the permissions by using following command:
sudo chmod +x /usr/local/bin/django-admin.py but its not necessary to give the whole path, infact the alternate method is easier. In most unix-like systems django is found in site packages but in python2.6 and python2.7 django is found in dist packages On Thu, Jun 21, 2012 at 2:26 PM, Gelonida N <gelon...@gmail.com> wrote: > On 05/28/2012 04:53 AM, xaegis wrote: > >> Hello, this is my first time posting to a list! >> I am running python 2.7 with django 1.4 installed on Ubuntu 12.04 >> I am having trouble creating new projects with django. Whenever I use >> the command: >> Code: >> >> sudo /usr/local/lib/python2.7/dist-**packages/django/bin/django-** >> admin.py >> startproject cms >> >> I get errors or permission denied messages but if I use: >> Code: >> >> > Just one other comment. > > Are you really sure, that you want to create a Django project with root > privileges? > > This is rather unusual. > > Why do you want to do this? > > > -- > 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 <django-users%2bunsubscr...@googlegroups.com>. > For more options, visit this group at http://groups.google.com/** > group/django-users?hl=en<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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.