dkoug Blog

Cached templates django production settings

Django -- Posted on Dec. 1, 2017

Cached templates django production settings

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
In template settings  in options  add cached settings:

            'debug': DEBUG,
            'loaders': [
                ('django.template.loaders.cached.Loader', [
                    'django.template.loaders.filesystem.Loader',
                    'django.template.loaders.app_directories.Loader',

                ]),
            ],