diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2012-09-21 16:47:02 -0500 |
---|---|---|
committer | Tim Laszlo <tim.laszlo@gmail.com> | 2012-09-21 16:47:32 -0500 |
commit | fdb7a08f6f9bdd99449f118e20e1d38801a42fab (patch) | |
tree | a750e29c2ad0d71250a650ee4fcf11a075122e45 | |
parent | a751399fb77aaeee0312a9ee381257408b317da8 (diff) | |
download | bcfg2-fdb7a08f6f9bdd99449f118e20e1d38801a42fab.tar.gz bcfg2-fdb7a08f6f9bdd99449f118e20e1d38801a42fab.tar.bz2 bcfg2-fdb7a08f6f9bdd99449f118e20e1d38801a42fab.zip |
reports: Update TEMPLATE_LOADERS for older versions of Django
-rw-r--r-- | src/lib/Bcfg2/settings.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/lib/Bcfg2/settings.py b/src/lib/Bcfg2/settings.py index 9e2be5cb9..484e7f769 100644 --- a/src/lib/Bcfg2/settings.py +++ b/src/lib/Bcfg2/settings.py @@ -130,10 +130,16 @@ ADMIN_MEDIA_PREFIX = '/media/' # Make this unique, and don't share it with anybody. SECRET_KEY = 'eb5+y%oy-qx*2+62vv=gtnnxg1yig_odu0se5$h0hh#pc*lmo7' -TEMPLATE_LOADERS = ( - 'django.template.loaders.filesystem.Loader', - 'django.template.loaders.app_directories.Loader', -) +if has_django and django.VERSION[0] == 1 and django.VERSION[1] < 3: + TEMPLATE_LOADERS = ( + 'django.template.loaders.filesystem.load_template_source', + 'django.template.loaders.app_directories.load_template_source', + ) +else: + TEMPLATE_LOADERS = ( + 'django.template.loaders.filesystem.Loader', + 'django.template.loaders.app_directories.Loader', + ) #TODO - review these. auth and sessions aren't really used MIDDLEWARE_CLASSES = ( |