docs/usersessions/installation.rst
raw| 1 | Installation |
| 2 | ============ |
| 3 | |
| 4 | On top of the standard installation, add the following:: |
| 5 | |
| 6 | INSTALLED_APPS = [ |
| 7 | ... |
| 8 | 'django.contrib.humanize', |
| 9 | 'allauth.usersessions', |
| 10 | ... |
| 11 | ] |
| 12 | |
| 13 | MIDDLEWARE = [ |
| 14 | ... |
| 15 | # Optional -- needed when: USERSESSIONS_TRACK_ACTIVITY = True |
| 16 | 'allauth.usersessions.middleware.UserSessionsMiddleware', |
| 17 | ... |
| 18 | ] |