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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to