Hi I am trying to use login required middleware in a project and followed every step mentioned on following url , but its just not working.
http://djangosnippets.org/snippets/1179/ placed the above middleware in myproject/middleware.py added following lines to settings.py LOGIN_URL = '/' MIDDLEWARE_CLASSES = ( 'myproject.middleware.LoginRequiredMiddleware' ) django.core.context_processors.auth is changed to django.contrib.auth.context_processors.auth and it is in global_settings.py. but still it wont forward the anonymouse users to login page which is '/' Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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.