Why does Django 1.10 enforce templates to be defined in the settings file? -
i following warning while running various manage.py commands in django 1.9.8 project:
/usr/local/lib/python2.7/dist-packages/django/template/utils.py:37: removedindjango110warning: haven't defined templates setting. must before upgrading django 1.10. otherwise django unable load templates. "unable load templates.", removedindjango110warning)
why needed starting django 1.10 ? use django creating apis solely, , have no reason use templating engine producing html or whatnot.
removedindjango110warning: haven't defined templates setting. must before upgrading django 1.10. otherwise django unable load templates.
this means if nothing won't able load templates. should none of concerns if don't use templates.
if want dismiss warning in django < 1.10, can set non-empty list:
templates = [{}]
as of reason why "required" (actually in case it's not), explained in django 1.8 releases notes:
as consequence of multiple template engines refactor, several settings deprecated in favor of
templates
Comments
Post a Comment