Getting Started¶
Installation¶
First, install the django-elevate
library with pip.
$ pip install django-elevate
Next, we need to add the elevate
application to our INSTALLED_APPS
. Installing the application
will automatically register the user_logged_in
and user_logged_out
signals that are needed.
INSTALLED_APPS = (
# ...
'elevate',
)
Now we need to add Elevate’s middleware to the MIDDLEWARE
setting:
MIDDLEWARE = (
# ...
'elevate.middleware.ElevateMiddleware',
)
Note
elevate.middleware.ElevateMiddleware
must be installed after
django.contrib.session.middleware.SessionMiddleware
.
Proceed to the Configuration documentation.