|
|
@@ -38,8 +38,6 @@ INSTALLED_APPS = [ |
|
|
|
'django.contrib.messages', |
|
|
|
'django.contrib.staticfiles', |
|
|
|
'rest_framework', |
|
|
|
|
|
|
|
'django.contrib.sites', |
|
|
|
] |
|
|
|
|
|
|
|
MIDDLEWARE_CLASSES = [ |
|
|
@@ -84,7 +82,6 @@ DATABASES = { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
AUTH_PASSWORD_VALIDATORS = [ |
|
|
|
{ |
|
|
|
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', |
|
|
@@ -113,11 +110,20 @@ USE_TZ = False |
|
|
|
STATIC_URL = '/static/' |
|
|
|
|
|
|
|
REST_FRAMEWORK = { |
|
|
|
'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',), |
|
|
|
'DEFAULT_PERMISSION_CLASSES': ( |
|
|
|
'rest_framework.permissions.IsAuthenticated', |
|
|
|
), |
|
|
|
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', |
|
|
|
'PAGE_SIZE': 20, |
|
|
|
'DEFAULT_FILTER_BACKENDS': ('rest_framework.filters.OrderingFilter', |
|
|
|
'rest_framework.filters.SearchFilter',), |
|
|
|
'DEFAULT_FILTER_BACKENDS': ( |
|
|
|
'rest_framework.filters.OrderingFilter', |
|
|
|
'rest_framework.filters.SearchFilter', |
|
|
|
), |
|
|
|
'DEFAULT_AUTHENTICATION_CLASSES': ( |
|
|
|
'rest_framework.authentication.SessionAuthentication', |
|
|
|
'rest_framework.authentication.BasicAuthentication', |
|
|
|
'rest_framework_jwt.authentication.JSONWebTokenAuthentication', |
|
|
|
), |
|
|
|
'DEFAULT_RENDERER_CLASSES': ( |
|
|
|
'rest_framework.renderers.JSONRenderer', |
|
|
|
'rest_framework.renderers.BrowsableAPIRenderer', |
|
|
|