Friday, April 29, 2011

How do I set permissions for manual install of 1.3 for ubuntu 11.04?

I installed django 1.3 manually on my laptop, since ubuntu 11.04 does not ship with 1.3 and I want to be able to run django-admin without having to sudo the command when creating projects and subsequently having to use sudo with manage.py. I want to mimic whatever permissions that allowed me to use the django-admin as a normal user, just like the ubuntu package does.

Here is the error i get with running django-admin without sudo:

Traceback (most recent call last):
  File "/usr/local/bin/django-admin.py", line 5, in <module>
    management.execute_from_command_line()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 429, in execute_from_command_line
   
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 379, in execute
   
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 191, in run_from_argv
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 220, in execute
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 322, in handle
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/startproject.py", line 30, in handle_label
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 407, in copy_helper
IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/django/conf/project_template/settings.py'

Regards,
Joshua Sierra

--
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