> 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.
You will need to be able to save things in /usr/local/lib/python*/
I've made those dirs owner root, group "staff", chmod 775 with
setguid, and put myself in staff. I think that's how it's done.
The other thing you could try is installing it somewhere else, using
the command line switch (eg ~/src), and then symlinking to that dir
from /usr/local/lib/python*/dist-packages
That's off the top of my head and may be completely the wrong way to
go about it.
> 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.
>
--
Benford's law, also called the first-digit law, states that in lists
of numbers from many (but not all) real-life sources of data, the
leading digit is distributed in a specific, non-uniform way. According
to this law, the first digit is 1 almost one third of the time, and
larger digits occur as the leading digit with lower and lower
frequency, to the point where 9 as a first digit occurs less than one
time in twenty. (via @cyberu)
from The Best of Wikipedia http://bestofwikipedia.tumblr.com/
--
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