2👍
✅
0👍
Perhaps you could use signals to catch people that are not logged in:
http://docs.djangoproject.com/en/dev/ref/signals/#django.core.signals.request_started
Or you could fiddle with the urlpatterns somehow, so that the urlpatterns list only contains the required login stuff when you’re not logged in. That would work, right?
- [Answered ]-Django manage.py – Is there a way to get the –settings argument from the environment?
- [Answered ]-Python django can't get any views to work
- [Answered ]-Iterate over one key's dictionary in another dictionary in a Django template
- [Answered ]-Limit a Django ManyToMany by field value
- [Answered ]-Problem with deploying django application on mod_wsgi
Source:stackexchange.com