Re: Django apache mod_wsgi permission denied

2012-12-01 Thread Chris Cogdon
On Friday, November 30, 2012 8:53:42 PM UTC-8, Mike Dewhirst wrote: > > On 1/12/2012 3:48pm, Loai Ghoraba wrote: > > I have ran chmod o+rx on the root directory, isn't this enough (isn't > > chmod applied to all folders down recursively ?) ? > > No. You need chmod -R o+rx > Oh hell no, don't

Re: calling the view function in the other view function

2012-12-01 Thread Chris Cogdon
On Friday, November 30, 2012 9:22:08 PM UTC-8, Satinderpal Singh wrote: > > On Sat, Dec 1, 2012 at 4:45 AM, Chris Cogdon > > wrote: > > It's generally very messy for one "view" function to call another. > Then what is the fun of making the function, if it is not reusable. > > > > Better solu

Re: Django apache mod_wsgi permission denied

2012-12-01 Thread Timothy Makobu
Root directory??? As in / ? Nooo nonono On Sat, Dec 1, 2012 at 12:14 PM, Chris Cogdon wrote: > > > On Friday, November 30, 2012 8:53:42 PM UTC-8, Mike Dewhirst wrote: >> >> On 1/12/2012 3:48pm, Loai Ghoraba wrote: >> > I have ran chmod o+rx on the root directory, isn't this enough (isn't >>

App-Hooks Problems

2012-12-01 Thread jk121960
Hi I am new to Django and Django-cms, I was going through documentation on Django-cms and I came across a description of adding an app to your page, http://docs.django-cms.org/en/2.1.3/extending_cms/extending_examples.html#my-first-app-apphook I don't even show redirect application or soft root s

Re: Django apache mod_wsgi permission denied

2012-12-01 Thread Loai Ghoraba
no I mean the root of my project guys :) thanks a lot :D which lives in path/to/my/project :) On Sat, Dec 1, 2012 at 11:42 AM, Timothy Makobu wrote: > Root directory??? As in / ? Nooo nonono > > > On Sat, Dec 1, 2012 at 12:14 PM, Chris Cogdon wrote: > >> >> >> On Friday, November 30, 2012 8

Admin UI Improvements for Ordered List Using Through Inline?

2012-12-01 Thread Andrew Brown
Greetings, I'm hopeful someone can point me in the right direction to improve the admin UI for my app. I need to allow for the creation and display of an ordered list of books. I had no problem setting this up and editing the lists in the admin UI, but the UX for an admin leaves much to be desired

DJANGO_SETTINGS_MODULE in a setup with only individual Django components

2012-12-01 Thread Stefan Schwarzburg
Hi, I'm looking for help with the following problem: I have a project, in which I only use the django ORM and no other parts of django. In previous versions of that project (django < 1.4) I used code similar to manage.py but I called 'settings.configure' before calling 'execute_manager'. Thi

Django login twice required when using xsendfile with apache

2012-12-01 Thread Loai Ghoraba
Hi I am using apache2 server with xsend file to protect against static files, the python view is: @staff_member_required def media_xsendfile(request, path, document_root): print "is staff",request.user.is_staff response = HttpResponse() response['Content-Disposition'] = 'attachment'

Re: DJANGO_SETTINGS_MODULE in a setup with only individual Django components

2012-12-01 Thread Stefan Schwarzburg
ARRGH, sorry for the spam. The problem was that I have imported other django modules before calling execute_from_commandline... Cheers, Stefan On Saturday, December 1, 2012 5:57:31 PM UTC+1, Stefan Schwarzburg wrote: > > Hi, > > I'm looking for help with the following problem: > > I have a p

Re: Django login twice required when using xsendfile with apache

2012-12-01 Thread Loai Ghoraba
and another issue: using apache, even when the user is logged in and is_staff, he is redirected to the login page, and he needs to login to download the file, and this continues on. On Sat, Dec 1, 2012 at 7:30 PM, Loai Ghoraba wrote: > Hi > > I am using apache2 server with xsend file to protect

Re: Django apache mod_wsgi permission denied

2012-12-01 Thread Chris Cogdon
On Saturday, December 1, 2012 3:47:39 AM UTC-8, Loai Ghoraba wrote: > > no I mean the root of my project guys :) thanks a lot :D which lives in > path/to/my/project :) > Oh thank god for that! I'd actually done something similiar once... I'd removed a bunch of permissions using chmod -R / r

Re: Django apache mod_wsgi permission denied

2012-12-01 Thread Loai Ghoraba
Thanks a million for the tip :) On Sun, Dec 2, 2012 at 5:08 AM, Chris Cogdon wrote: > > > On Saturday, December 1, 2012 3:47:39 AM UTC-8, Loai Ghoraba wrote: >> >> no I mean the root of my project guys :) thanks a lot :D which lives in >> path/to/my/project :) >> > > Oh thank god for that! > > I