This commit is contained in:
jain
2023-07-07 17:02:48 +05:30
parent ab435ef384
commit 9e8cde3516

View File

@ -112,6 +112,30 @@ DATABASES = {
'PORT':os.getenv('DB_PORT'),
}
}
SWAGGER_SETTINGS = {
"exclude_namespaces": [],
"api_version": '0.1',
"api_path": "",
"enabled_methods": [
'get',
'post',
'put',
'patch',
'delete'
],
"api_key": '',
"is_authenticated": True,
"is_superuser": False,
'SECURITY_DEFINITIONS': {
"api_key": {
"type": "apiKey",
"name": "Authorization",
"in": "header",
},
},
}
# Password validation
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators