Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
6e2ebb1b
Verified
Commit
6e2ebb1b
authored
Mar 17, 2017
by
Sébastiaan Versteeg
Browse files
Enable session and basic authentication for rest framework
parent
e253efce
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/thaliawebsite/settings/settings.py
View file @
6e2ebb1b
...
...
@@ -165,6 +165,8 @@ AUTHENTICATION_BACKENDS = [
REST_FRAMEWORK
=
{
'DEFAULT_AUTHENTICATION_CLASSES'
:
(
'rest_framework.authentication.SessionAuthentication'
,
'rest_framework.authentication.BasicAuthentication'
,
'rest_framework.authentication.TokenAuthentication'
,
)
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment