Hi,

This ticket is pretty old, but if it turns out you need a new decorator you
can try the patch:

http://code.djangoproject.com/ticket/11770

Regards,
Paulo

On Fri, Mar 19, 2010 at 9:57 PM, Martin Tiršel <dja...@blackpage.eu> wrote:

> Hello,
>
> I am programming an application where one part is customer database with
> accounts and settings for internal access, the second part is customer
> access with different interface and functionality. For internal access I am
> using django.contrib.auth and login_required decorator. This decorator
> redirect the user to settings.LOGIN_URL in case the user is not logged in
> and tries to access login required part. But I can not use this decorator
> for customer part because I need another settings.LOGIN_URL and afaik
> settings.py are project specific, not application specific (administration
> and customer parts are applications). Is there a way how to use Django's
> features or I have to create custom decorator to check if the user is logged
> in? Or I have to create separate project for internal and customer access
> sharing the same database?
>
> Thanks,
> Martin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> 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-us...@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.

Reply via email to