Created
October 30, 2012 00:43
-
-
Save mikelopez/3977620 to your computer and use it in GitHub Desktop.
Multiple django version settings support for versions > 1.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
from django.template.loaders.filesystem import load_template_source as todel | |
del(todel) | |
TEMPLATE_LOADERS = ( | |
'django.template.loaders.filesystem.load_template_source', | |
'django.template.loaders.app_directories.load_template_source', | |
# 'django.template.loaders.eggs.load_template_source', | |
) | |
except ImportError: | |
TEMPLATE_LOADERS = ( | |
'django.template.loaders.filesystem.Loader', | |
'django.template.loaders.app_directories.Loader', | |
# 'django.template.loaders.eggs.Loader', | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment