diff options
Diffstat (limited to 'lcm/lcm/settings.py')
-rw-r--r-- | lcm/lcm/settings.py | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/lcm/lcm/settings.py b/lcm/lcm/settings.py index f4b7826b..988740ea 100644 --- a/lcm/lcm/settings.py +++ b/lcm/lcm/settings.py @@ -45,7 +45,8 @@ INSTALLED_APPS = [ 'rest_framework', 'lcm.pub.database', 'lcm.samples', - 'lcm.swagger' + 'lcm.swagger', + 'drf_yasg', ] MIDDLEWARE_CLASSES = [ @@ -76,6 +77,23 @@ REST_FRAMEWORK = { ) } +# drf-yasg +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', |