Project

Profile

Help

Issue #2049

closed

Django RemovedInDjango110Warning in logs for missing TEMPLATES setting

Added by jcline@redhat.com almost 8 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.10.1
OS:
Triaged:
Yes
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Easy Fix, Pulp 2
Sprint:
Sprint 6
Quarter:

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.

Also available in: Atom PDF