summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Goirand <zigo@debian.org>2016-07-19 09:38:14 +0200
committerThomas Goirand <zigo@debian.org>2016-07-19 09:39:54 +0200
commitcdccf5909e67b612f5b1512740d3eb63f2b8eebe (patch)
treebc29c5d35be9a866605adbd0a91f5269061bc8ae
parent8c30df2c0197ec4bfd3ee3355c62e210ef66f88e (diff)
downloaddjango_openstack_auth-cdccf5909e67b612f5b1512740d3eb63f2b8eebe.tar.gz
[Django 1.10] Define TEMPLATES
In Django 1.10, one *must* define TEMPLATES, and set the BACKEND APP_DIRS to True. If this isn't done, the package cannot find its html templates. Change-Id: Ic4d238ad42931d71da00b468c5f9fd205fa9d4e6
-rw-r--r--openstack_auth/tests/settings.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/openstack_auth/tests/settings.py b/openstack_auth/tests/settings.py
index 753a02a..17f59e6 100644
--- a/openstack_auth/tests/settings.py
+++ b/openstack_auth/tests/settings.py
@@ -63,3 +63,10 @@ POLICY_FILES = {
'identity': 'keystone_policy.json',
'compute': 'nova_policy.json'
}
+
+TEMPLATES = [
+ {
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'APP_DIRS': True,
+ },
+]