From: Thomas Goirand Date: Thu, 21 Jul 2016 11:58:31 +0000 (+0000) Subject: Fix django-1.10-horizon.test.settings.patch X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=7a766bf1cfd82077b628fda6a86165cf377e042c;p=openstack-build%2Fhorizon-build.git Fix django-1.10-horizon.test.settings.patch Rewritten-From: 7bb395e6b916c24b1cbe48060f6e3f99d3c79143 --- diff --git a/xenial/debian/patches/django-1.10-horizon.test.settings.patch b/xenial/debian/patches/django-1.10-horizon.test.settings.patch index 2f048cb..b20ca42 100644 --- a/xenial/debian/patches/django-1.10-horizon.test.settings.patch +++ b/xenial/debian/patches/django-1.10-horizon.test.settings.patch @@ -22,7 +22,7 @@ Last-Update: 2016-07-21 'django.contrib.messages.context_processors.messages', 'horizon.context_processors.horizon') -@@ -170,3 +170,27 @@ LOGGING = { +@@ -170,3 +170,26 @@ LOGGING = { } } } @@ -30,7 +30,6 @@ Last-Update: 2016-07-21 +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', -+ 'APP_DIRS': True, + 'DIRS': [ os.path.join( os.path.dirname(os.path.abspath(__file__)), 'tests', 'templates'), ], + 'OPTIONS': { + 'context_processors': [ @@ -42,11 +41,11 @@ Last-Update: 2016-07-21 + 'django.contrib.messages.context_processors.messages', + 'horizon.context_processors.horizon' + ], ++ 'loaders': [ ++ 'django.template.loaders.filesystem.Loader', ++ 'django.template.loaders.app_directories.Loader', ++ 'horizon.loaders.TemplateLoader' ++ ], + }, -+ 'loaders': [ -+ 'django.template.loaders.filesystem.Loader', -+ 'django.template.loaders.app_directories.Loader', -+ 'horizon.loaders.TemplateLoader' -+ ], + }, +] diff --git a/xenial/debian/patches/series b/xenial/debian/patches/series index d1fcceb..ff44a28 100644 --- a/xenial/debian/patches/series +++ b/xenial/debian/patches/series @@ -6,5 +6,5 @@ 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-horizon.test.settings.patch django-1.10-do-not-use-django.template.Context-function.patch +django-1.10-horizon.test.settings.patch