Installation¶
Application Install¶
Setting up django-newauth is easy.
First install newauth using pip (doesn’t work yet):
$ pip install django-newauth
Next, add newauth
to INSTALLED_APPS in your
settings.py
.
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
#...
'newauth',
#...
)
Middleware Setup¶
You need to install the authentication middleware to support
authentication. Add newauth.middleware.AuthMiddleware
to the MIDDLEWARE_CLASSES setting in your settings.py
.
MIDDLEWARE_CLASSES = (
#...
'newauth.middleware.AuthMiddleware',
#...
)
From here you should proceed to the Tutorial.