Skip to content

Commit

Permalink
Details to the settings
Browse files Browse the repository at this point in the history
  • Loading branch information
goinnn committed Oct 6, 2013
1 parent df38865 commit 1acb52e
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions example/example/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,22 +152,8 @@
},
}
}
import django


# dbtemplates configuration. This is to test the smartextends with three TEMPLATE_LOADERS installed

try:
import dbtemplates
INSTALLED_APPS += ('dbtemplates',
'example.dbtemplates_fixtures')
TEMPLATE_LOADERS = ('dbtemplates.loader.Loader',) + TEMPLATE_LOADERS
if django.VERSION[0] >= 1 and django.VERSION[1] <= 2:
DBTEMPLATES_CACHE_BACKEND = "locmem://"
else:
DBTEMPLATES_USE_CODEMIRROR = True
except ImportError:
pass
import django

# Custom settings to the different django versions

Expand Down Expand Up @@ -234,3 +220,22 @@
'django.template.loaders.app_directories.load_template_source',
# 'django.template.loaders.eggs.load_template_source',
)

# dbtemplates configuration. This is to test the smartextends with three TEMPLATE_LOADERS installed

try:
import dbtemplates
INSTALLED_APPS += ('dbtemplates',
'example.dbtemplates_fixtures')

if django.VERSION[0] >= 1 and django.VERSION[1] >= 2:
TEMPLATE_LOADERS = ('dbtemplates.loader.Loader',) + TEMPLATE_LOADERS
else:
TEMPLATE_LOADERS = ('dbtemplates.loader.load_template_source',) + TEMPLATE_LOADERS

if django.VERSION[0] >= 1 and django.VERSION[1] <= 2:
DBTEMPLATES_CACHE_BACKEND = "locmem://"
else:
DBTEMPLATES_USE_CODEMIRROR = True
except ImportError:
pass

0 comments on commit 1acb52e

Please sign in to comment.