Need your feedback
Site Search
-
Categories
- Actionscript (1)
- Django (28)
- iPhone (7)
- Javascript (12)
- Linux (13)
- Mac OS Basic (11)
- Misc (43)
- PHP (25)
- Python (2)
- Software Support (7)
- Uncategorized (1)
-
-
-
Tag Archives: csrf
Django CSRF Problem
After upgrade to django 1.2.1, I encountered csrf porblems. I did these things to fix it: modify settings.py, add try: from django.middleware import csrf MIDDLEWARE_CLASSES += ( ‘django.middleware.csrf.CsrfViewMiddleware’, ‘django.middleware.csrf.CsrfResponseMiddleware’, ) except: pass below MIDDLEWARE_CLASSES = ( …… ) add {% … Continue reading