Issue #2049
closedDjango RemovedInDjango110Warning in logs for missing TEMPLATES setting
Description
Running Django 1.9 you will see
Jul 01 12:56:11 dev pulp[1017]: py.warnings:WARNING: (1017-16832) /usr/lib/python2.7/site-packages/django/template/utils.py:37: RemovedInDjango110Warning: You haven't defined a TEMPLATES setting. You must do so before upgrading to Django 1.10. Otherwise Django will be unable to load templates.
Jul 01 12:56:11 dev pulp[1017]: py.warnings:WARNING: (1017-16832) "unable to load templates.", RemovedInDjango110Warning)
Jul 01 12:56:11 dev pulp[1017]: py.warnings:WARNING: (1017-16832)
in the logs.
Django 1.10 is slated to enter RC on July 15th, with the final release approximately 2 weeks later, barring blocking bugs. This means that at the end of July, Pulp will likely stop working in Fedora Rawhide when Django 1.10 gets pulled it. Although unlikely, the package maintainer might even push the update to Fedora 24/23, so our users (and developers on those platforms) could be affected as well.
The fix for this should be straight-forward: Define the TEMPLATES setting in our settings.py for both the main Pulp server and the content WSGI application. It should probably match the installation directory used in the spec file (/usr/share/pulp I think?) and the only other thing to check is that our dev installation links the templates properly.
build templates compatible with Django 1.4-1.10
closes #2049