Bug 828657
Summary: | cobbler-web can't find django.contrib.sessions.middleware.SessionMiddleware | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Pete Travis <me> | ||||||
Component: | cobbler | Assignee: | James C. <jimi> | ||||||
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 17 | CC: | awood, dgoodwin, jimi, vanmeeuwen+fedora | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2012-06-06 13:10:28 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Pete Travis
2012-06-05 06:59:27 UTC
Upstream has already fixed this! The MIDDLEWARE_CLASSES stanza should be replaced with the following: if django.VERSION[0] == 1 and django.VERSION[1] < 2: # Legacy django had a different CSRF method, which also had # different middleware. We check the vesion here so we bring in # the correct one. MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.csrf.middleware.CsrfMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', ) else: MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', ) Created attachment 589405 [details]
less redundant TEMPLATE_LOADERS fix
always proofread, I remind myself
This doesn't appear to be a bug in the main codebase. Looking at the release22 branch (which was just released as 2.2.3-1) with git blame shows the following for the TEMPLATE_LOADERS entry: 43a48702 django/settings.py (Michael DeHaan 2009-04-27 13:58:09 -0400 39) TEMPLATE_LOADERS = ( 43a48702 django/settings.py (Michael DeHaan 2009-04-27 13:58:09 -0400 40) 'django.template.loaders.filesystem.load_template_source', 43a48702 django/settings.py (Michael DeHaan 2009-04-27 13:58:09 -0400 41) 'django.template.loaders.app_directories.load_template_sourc 43a48702 django/settings.py (Michael DeHaan 2009-04-27 13:58:09 -0400 42) ) So that file has not changed in over 3 years. Closing this as NOTABUG. |