Set authentication to webapp DRF

This commit is contained in:
Aarni Halinen
2018-07-24 19:09:42 +03:00
parent 0ce6af8f7c
commit ac8fb0bfe3
3 changed files with 11 additions and 2 deletions
+2 -1
View File
@@ -96,6 +96,7 @@ INSTALLED_APPS = [
'kaehmy',
'ohlhafv',
'rest_framework',
'rest_framework_jwt',
'django_nose',
'bootstrap3',
'django_tables2',
@@ -221,7 +222,7 @@ REST_FRAMEWORK = {
'rest_framework.permissions.IsAdminUser',
),
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.TokenAuthentication',
'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
),
'DEFAULT_THROTTLE_CLASSES': (
'members.throttles.BurstRateThrottle',