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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -