debugging CSRF trouble
I'm using a package django-page-cms that uses CSRF and can't
follow the docs for CSRF for django 1.2.
They say I should add these lines to MIDDLEWARE_CLASSES,
'django.middleware.csrf.CsrfViewMiddleware'
'django.middleware.csrf.CsrfResponseMiddleware'
but when I do, I get an error:
File "/var/web/industromatic.com_bld/parts/django/django/core/handlers/base.py", line 42, in load_middleware
raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e))
ImproperlyConfigured: Error importing middleware django.middleware.csrf.CsrfViewMiddlewaredjango.middleware.csrf:
"No module named CsrfViewMiddlewaredjango.middleware.csrf"
The funny thing is the above path seems good, and in with that same
django source is the file with the module. The error reports the name all
run together several times. Any ideas what is happening?
settings with MIDDLEWARE_CLASSES that cause error: http://dpaste.com/217074/
error traceback: http://dpaste.com/217075/
John
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home