Comments (6)
this will be fixed when django 1.1 lands
from django-cms.
from http://docs.djangoproject.com/en/dev/ref/contrib/csrf/#upgrading-notes
"Note that contrib apps, such as the admin, have been updated to use the csrf_protect decorator, so that they are secured even if you do not add the CsrfViewMiddleware to your settings. However, if you have supplied customised templates to any of the view functions of contrib apps (whether explicitly via a keyword argument, or by overriding built-in templates), you MUST update them to include the csrf_token template tag as described above, or they will stop working. (If you cannot update these templates for some reason, you will be forced to use CsrfResponseMiddleware for these views to continue working)."
from django-cms.
this is for django 1.2?
from django-cms.
yes, this is for 1.2, the current trunk version.
python -c "import django; print django.VERSION"
(1, 2, 0, 'alpha', 0)
from django-cms.
Note that CSRF middleware has been enabled by default from trunk revision 11660 onwards. (At this moment the latest revision is 11752.)
I had problems with CSRF middleware when trying to edit a django-cms page. I got an error which reads:
'PageAdmin' object has no attribute 'COOKIES'
I checked and there are no problems with revision 11659 of django. So, until this is fixed in django-cms people can use "svn update -r 11659" to revert their django source tree to the latest working revision.
from django-cms.
The fix for PageAdmin is to use the new django.utils.decorators.method_decorator when setting up reversion's create_on_success decorator. See:
http://code.djangoproject.com/ticket/12804
from django-cms.
Related Issues (20)
- fix separately
- Clarify the necessity of this and the line above
- [BUG] Cms check show wrong error HOT 3
- [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 1
- [BUG] Missing translations on 3.11.5 HOT 1
- [BUG] Structure board renders placeholders of wrong language
- [BUG] Unpublished page is shown instead of 404 HOT 13
- [BUG] `CMS_TOOLBAR_HIDE = True` breaks ToolbarMiddleware in v3.11.x HOT 1
- [BUG] Special characters in page title HOT 7
- [BUG] Adding new page ignores setting CMS_DEFAULT_IN_NAVIGATION
- [BUG] CMS 4.1 slug is readonly when changing Page title HOT 3
- [DOC] No explanation on using PlaceholderRelationField with classed based views HOT 16
- [BUG] Editing a page sometimes fails HOT 1
- [BUG] Console error in browser when opening PageContentAdmin HOT 1
- [BUG] Add plugin modal not working after migration HOT 1
- [BUG] placeholder inherit does not work HOT 2
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.