Skip to content

Commit 496fca1

Browse files
committed
Add UNAUTHENTICATED_USER = None note
When removing authentication entirely you cannot import `django.contrib.auth.models.AnonymousUser` Closes encode#3494
1 parent 21a9740 commit 496fca1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/api-guide/settings.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ Default: `'version'`
202202
#### UNAUTHENTICATED_USER
203203

204204
The class that should be used to initialize `request.user` for unauthenticated requests.
205+
(If removing authentication entirely, e.g. by removing `django.contrib.auth` from
206+
`INSTALLED_APPS`, set `UNAUTHENTICATED_USER` to `None`.)
205207

206208
Default: `django.contrib.auth.models.AnonymousUser`
207209

0 commit comments

Comments
 (0)