Updated default settings.

This commit is contained in:
Antoine Nguyen
2021-02-08 15:29:41 +01:00
parent 3e94ac66ab
commit 53589d05e3
2 changed files with 7 additions and 1 deletions
@@ -188,14 +188,17 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework_simplejwt.authentication.JWTAuthentication',
'rest_framework.authentication.TokenAuthentication',
'rest_framework.authentication.SessionAuthentication',
),
'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema',
'DEFAULT_VERSIONING_CLASS': 'rest_framework.versioning.NamespaceVersioning',
}
SPECTACULAR_SETTINGS = {
'SCHEMA_PATH_PREFIX': r'/api/v1',
'SCHEMA_PATH_PREFIX': r'/api/v[0-9]',
'TITLE': 'Modoboa API',
'VERSION': '1.0.0',
'SERVE_PERMISSIONS': ['rest_framework.permissions.IsAuthenticated'],
+3
View File
@@ -6,12 +6,15 @@ django-reversion==3.0.8
django-xforwardedfor-middleware==2.0
django-webpack-loader
django-otp==1.0.2
django-filter
dj-database-url
djangorestframework>=3.11,<3.13
drf-spectacular
uritemplate
djangorestframework-simplejwt
drf-flex-fields
passlib~=1.7.4
bcrypt # Requires libffi-dev and python-dev