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.

Actions #1

Updated by amacdona@redhat.com almost 8 years ago

  • Triaged changed from No to Yes
Actions #2

Updated by mhrivnak almost 8 years ago

  • Tags Easy Fix added
Actions #3

Updated by mhrivnak almost 8 years ago

  • Sprint/Milestone set to 24
Actions #4

Updated by amacdona@redhat.com over 7 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to amacdona@redhat.com
Actions #5

Updated by amacdona@redhat.com over 7 years ago

  • Status changed from ASSIGNED to POST

Added by Austin Macdonald over 7 years ago

Revision d22d6a26 | View on GitHub

build templates compatible with Django 1.4-1.10

closes #2049

Added by Austin Macdonald over 7 years ago

Revision d22d6a26 | View on GitHub

build templates compatible with Django 1.4-1.10

closes #2049

Actions #6

Updated by Anonymous over 7 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #7

Updated by semyers over 7 years ago

  • Platform Release set to 2.10.1
Actions #8

Updated by semyers over 7 years ago

  • Status changed from MODIFIED to 5
Actions #9

Updated by semyers over 7 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #10

Updated by bmbouter about 6 years ago

  • Sprint set to Sprint 6
Actions #11

Updated by bmbouter about 6 years ago

  • Sprint/Milestone deleted (24)
Actions #12

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF