]> review.fuel-infra Code Review - openstack-build/horizon-build.git/commitdiff
Add loaders in django-1.10-openstack_dashboard.test.settings.patch
authorThomas Goirand <thomas@goirand.fr>
Thu, 21 Jul 2016 12:20:04 +0000 (12:20 +0000)
committerThomas Goirand <thomas@goirand.fr>
Thu, 21 Jul 2016 12:20:04 +0000 (12:20 +0000)
Rewritten-From: 46d5d60f4c9ec0c74e38c1c793815ff19d7786d7

xenial/debian/patches/django-1.10-openstack_dashboard.test.settings.patch
xenial/debian/patches/series

index a996f060cd4a3a000ed6ed5f7247b1f7a290ec09..21486beaa7a4417222fb60e67791441d014686f7 100644 (file)
@@ -5,7 +5,7 @@ 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'
+@@ -242,3 +242,29 @@ 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']
@@ -13,7 +13,6 @@ Last-Update: 2016-07-21
 +TEMPLATES = [
 +    {
 +        'BACKEND': 'django.template.backends.django.DjangoTemplates',
-+        'APP_DIRS': True,
 +        'DIRS': [os.path.join(TEST_DIR, 'templates'), ],
 +        'OPTIONS': {
 +            'context_processors': [
@@ -26,6 +25,13 @@ Last-Update: 2016-07-21
 +                'horizon.context_processors.horizon',
 +                'openstack_dashboard.context_processors.openstack',
 +            ],
++            'loaders': [
++                'django.template.loaders.filesystem.Loader',
++                'django.template.loaders.app_directories.Loader',
++                'django.template.loaders.cached.Loader',
++                'horizon.themes.ThemeTemplateLoader',
++                'horizon.loaders.TemplateLoader',
++            ],
 +        },
 +    },
 +]
index 8864fe29b396ce6409665b58555d6565f886bcc5..5b122d7823bfe442f9b46206d98c9f6480e68a45 100644 (file)
@@ -5,6 +5,6 @@ BaseCommand.option_list-is-gone-from-django1.10.patch
 django-1.10-django.conf.urls.patterns-removed.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
 #django-1.10-do-not-use-django.template.Context-function.patch
 django-1.10-horizon.test.settings.patch
+django-1.10-openstack_dashboard.test.settings.patch