Comments (3)
@MrUsiPusi Thank you! Well spotted! django CMS checks both the "old" MIDDLEWARE_CLASSES
and the "new" MIDDLEWARE
. Since MIDDLEWARE_CLASSES
was removed in Django 2 (I think), django CMS will only need to check for MIDDLEWARE
and adjust its error messaeg accordingly.
Lines 235 to 241 in 8a0aa59
from django-cms.
@raffaellasuardini I think the issue here is that the error message says MIDDLEWARE_CLASSES
regardless of if the setting is MIDDLEWARE_CLASSES
or MIDDLEWARE
. So I think the fix would likely be;
if getattr(settings, 'MIDDLEWARE', None):
middlewares = settings.MIDDLEWARE
setting_name = "MIDDLEWARE"
else:
middlewares = settings.MIDDLEWARE_CLASSES
setting_name = "MIDDLEWARE_CLASSES"
for middleware in required_middlewares:
if middleware not in middlewares:
section.error("%s middleware must be in %s" % (middleware, setting_name))
from django-cms.
We can imho also remove the check for MIDDLEWARE_CLASSES
since it's been removed from Django since v2.0
from django-cms.
Related Issues (20)
- [BUG] With versioning enabled, "Show in Menu" does not work in page tree HOT 2
- [BUG] 404 page not found error without a trailing slash for "/en" and "/en/admin" URLs. HOT 1
- [DOC] code update
- [BUG] create_page_content API adding two cms_pagecontent records instead of one HOT 3
- [BUG] A new page can be edited after creation
- add language page return coroutine object has no attribute 'set_cookie' [BUG] HOT 2
- add language HOT 2
- [ENHANCEMENT] Add RTL support for the pagetree HOT 4
- [BUG] `./manage.py cms delete_orphaned_plugins` might create an inconsistent plugin tree
- fix separately
- Clarify the necessity of this and the line above
- [BUG] Adding a plugin to an apphooked page as admin raises permission error HOT 35
- [BUG] Only users with advanced page permissions can change page permissions HOT 1
- [BUG] Permission Denied exception when adding a page in a different language HOT 7
- Implement `uv` as a drop-in replacement for pip
- [BUG] cannot delete page HOT 10
- [BUG] Model PageUrl should add constraint unique_together HOT 2
- [BUG] Missing translations on 3.11.5 HOT 1
- [BUG] Structure board renders placeholders of wrong language
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-cms.