Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 21 lines (14 sloc) 0.42 kb
61940cf @carljm Added simple_form benchmark.
authored
1 try:
2 from django.template.loaders import forms
3 NEW_FORM_RENDERING = True
4 except ImportError:
5 NEW_FORM_RENDERING = False
6
7
8 _loaders = [
9 'django.template.loaders.filesystem.Loader',
10 'django.template.loaders.app_directories.Loader',
11 ]
12
13
14 if NEW_FORM_RENDERING:
15 _loaders += ['django.template.loaders.forms.Loader']
16
17
18 TEMPLATE_LOADERS = [
19 ('django.template.loaders.cached.Loader', _loaders),
20 ]
Something went wrong with that request. Please try again.