|
|
@ -55,6 +55,7 @@ INSTALLED_APPS = [ |
|
|
|
'api.apps.ApiConfig', |
|
|
|
'widget_tweaks', |
|
|
|
'rest_framework', |
|
|
|
'rest_framework.authtoken', |
|
|
|
'django_filters', |
|
|
|
'social_django', |
|
|
|
'polymorphic', |
|
|
@ -210,6 +211,10 @@ REST_FRAMEWORK = { |
|
|
|
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly', |
|
|
|
'rest_framework.permissions.IsAuthenticated', |
|
|
|
], |
|
|
|
'DEFAULT_AUTHENTICATION_CLASSES': ( |
|
|
|
'rest_framework.authentication.SessionAuthentication', |
|
|
|
'rest_framework.authentication.TokenAuthentication', |
|
|
|
), |
|
|
|
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', |
|
|
|
'PAGE_SIZE': 5, |
|
|
|
'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',), |
|
|
|