Add vfc-vnflcm auto-swagger requirements
[vfc/gvnfm/vnflcm.git] / lcm / lcm / settings.py
index f4b7826..988740e 100644 (file)
@@ -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',