Add swagger-ui auth hooks

Save authorization to local storage, refetch spec on auth, etc.
This commit is contained in:
Cristi Vîjdea
2018-10-14 04:28:42 +03:00
parent d41f0c5ac4
commit a419eec071
9 changed files with 5103 additions and 52 deletions
+4 -1
View File
@@ -49,7 +49,7 @@ ROOT_URLCONF = 'testproj.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'DIRS': [os.path.join(BASE_DIR, 'testproj', 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
@@ -132,6 +132,9 @@ USE_TZ = True
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'testproj', 'static'),
]
# Testing