Add UNAUTHENTICATED_USER = None note

When removing authentication entirely you cannot import `django.contrib.auth.models.AnonymousUser`

Closes #3494
This commit is contained in:
Carlton Gibson 2017-12-19 09:24:30 +01:00
parent 21a9740156
commit 496fca177a

View File

@ -202,6 +202,8 @@ Default: `'version'`
#### UNAUTHENTICATED_USER #### UNAUTHENTICATED_USER
The class that should be used to initialize `request.user` for unauthenticated requests. The class that should be used to initialize `request.user` for unauthenticated requests.
(If removing authentication entirely, e.g. by removing `django.contrib.auth` from
`INSTALLED_APPS`, set `UNAUTHENTICATED_USER` to `None`.)
Default: `django.contrib.auth.models.AnonymousUser` Default: `django.contrib.auth.models.AnonymousUser`