Add a middleware to require auth for all requests

This commit is contained in:
Claude Paroz 2012-11-08 18:02:27 +01:00
parent 780b475d41
commit a5c332a987
2 changed files with 9 additions and 0 deletions

View file

@ -95,6 +95,7 @@ MIDDLEWARE_CLASSES = (
'django.contrib.messages.middleware.MessageMiddleware',
# Uncomment the next line for simple clickjacking protection:
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
'common.middleware.LoginRequiredMiddleware',
)
ROOT_URLCONF = 'common.urls'