This commit is contained in:
Nukeap committed 2024-06-06 14:53:05 +03:00
1 parent 043575f962
commit 0c60252b52
6 files changed
+85 -16

No files matched your search

+13 -1
View File
@@ -24,7 +24,19 @@ SECRET_KEY=stngs.secret_key
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
myDEBUG=True
SWAGGER_SETTINGS = {
'DEFAULT_INFO': 'import.path.to.urls.api_info',
'SECURITY_DEFINITIONS': {
'Basic': {
'type': 'basic'
},
'Bearer': {
'type': 'apiKey',
'name': 'Authorization',
'in': 'header'
}
}
}
ALLOWED_HOSTS = []
CHANNEL_LAYERS = {
"default": {
+1
View File
@@ -31,6 +31,7 @@ schema_view = get_schema_view(
title="Портал API",
default_version='v0.1',
description="API портала инспекции 9966",
# terms_of_service="https://www.google.com/policies/terms/",
# contact=openapi.Contact(email="contact@snippets.local"),
# license=openapi.License(name="BSD License"),