On Sun, Jul 11, 2010 at 7:11 PM, John Griessen <[email protected]>wrote:
> 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?
>
There needs to be a comma on the end of the first line. Without it Python
concatenates the two strings into a single one.
Karen
--
http://tracey.org/kmt/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.