Re: Using the backend database to secure a page on the frontend

2012-04-02 Thread Philip Mountifield
Looks like an issue with the location of the templete folder, your TEMPLATE_LOADERS setting or TEMPLATE_DIRS if you put your templates somewhere else. Regards Phil On 30/03/2012 12:09, vanderkerkoff wrote: Thanks for getting back to me Phillip. I'm using that page as a guide, and i've got a

Re: Using the backend database to secure a page on the frontend

2012-03-30 Thread vanderkerkoff
Thanks for getting back to me Phillip. I'm using that page as a guide, and i've got a pages application that has a registration_required boolean field setup. In my urls file I've got this (r'^login/$', 'django.contrib.auth.views.login'), In my page view I'm doing this print pg.registration_req

Re: Using the backend database to secure a page on the frontend

2012-03-30 Thread Philip Mountifield
If you want to use the existing permission system, I think you'll find this is what you need: https://docs.djangoproject.com/en/1.4/topics/auth/#the-permission-required-decorator You could add some extra permissions to your models too if you need them: https://docs.djangoproject.com/en/1.4/ref

Using the backend database to secure a page on the frontend

2012-03-30 Thread vanderkerkoff
Hello there I"m sure this question has been answered before but I just can't find it, apologies. We've got a django 1.1.2 site and I need to secure some sections of the frontend, and use the users and groups model in the backend as the database to provide authentication. I really don't know wher