]> review.fuel-infra Code Review - openstack-build/horizon-build.git/commitdiff
Add django-1.10-openstack_dashboard.test.settings.patch
authorThomas Goirand <thomas@goirand.fr>
Thu, 21 Jul 2016 09:45:14 +0000 (09:45 +0000)
committerThomas Goirand <thomas@goirand.fr>
Thu, 21 Jul 2016 10:27:51 +0000 (10:27 +0000)
Rewritten-From: d77d5f6a46f4fe708a2732c71ebd838e70388d1f

xenial/debian/changelog
xenial/debian/patches/django-1.10-openstack_dashboard.test.settings.patch [new file with mode: 0644]
xenial/debian/patches/series

index 0d8d4c02062841da4ae150ade52fdf76c3fcb84b..d90f5bc86d4790cc0c209a9d4fe43c71c4108527 100644 (file)
@@ -5,6 +5,7 @@ horizon (3:10.0.0~b2-2) UNRELEASED; urgency=medium
     - django-1.10-define-TEMPLATES.patch
     - django-1.10-fix-wrong-django.conf.urls.url-call.patch
     - django-1.10-fixes-get-form-uses-kwargs.patch
+    - django-1.10-openstack_dashboard.test.settings.patch
 
  -- Thomas Goirand <zigo@debian.org>  Wed, 20 Jul 2016 10:49:45 +0200
 
diff --git a/xenial/debian/patches/django-1.10-openstack_dashboard.test.settings.patch b/xenial/debian/patches/django-1.10-openstack_dashboard.test.settings.patch
new file mode 100644 (file)
index 0000000..a996f06
--- /dev/null
@@ -0,0 +1,31 @@
+Description: [Django 1.10] openstack_dashboard.test.settings
+Author: Thomas Goirand <zigo@debian.org>
+Forwarded: no
+Last-Update: 2016-07-21
+
+--- horizon-10.0.0~b2.orig/openstack_dashboard/test/settings.py
++++ horizon-10.0.0~b2/openstack_dashboard/test/settings.py
+@@ -242,3 +242,23 @@ REST_API_SETTING_2 = 'bar'
+ REST_API_SECURITY = 'SECURITY'
+ REST_API_REQUIRED_SETTINGS = ['REST_API_SETTING_1']
+ REST_API_ADDITIONAL_SETTINGS = ['REST_API_SETTING_2']
++
++TEMPLATES = [
++    {
++        'BACKEND': 'django.template.backends.django.DjangoTemplates',
++        'APP_DIRS': True,
++        'DIRS': [os.path.join(TEST_DIR, 'templates'), ],
++        'OPTIONS': {
++            'context_processors': [
++                'django.template.context_processors.debug',
++                'django.template.context_processors.i18n',
++                'django.template.context_processors.request',
++                'django.template.context_processors.media',
++                'django.template.context_processors.static',
++                'django.contrib.messages.context_processors.messages',
++                'horizon.context_processors.horizon',
++                'openstack_dashboard.context_processors.openstack',
++            ],
++        },
++    },
++]
index 2bfcd3efec154b80912a9a344014396191045824..a7995f7afd5cc0acd5ab89fee40c0772f1fe2f93 100644 (file)
@@ -6,3 +6,4 @@ django-1.10-django.conf.urls.patterns-removed.patch
 django-1.10-fix-wrong-django.conf.urls.url-call.patch
 django-1.10-define-TEMPLATES.patch
 django-1.10-fixes-get-form-uses-kwargs.patch
+django-1.10-openstack_dashboard.test.settings.patch