#12177: Error in part 4 of the tutorial?
------------------------------------+---------------------------------------
Reporter: simon_k | Owner: nobody
Status: reopened | Milestone:
Component: Documentation | Version: SVN
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------+---------------------------------------
Changes (by datakid):
* status: closed => reopened
* version: 1.1 => SVN
* resolution: duplicate =>
Comment:
Hmm, this response is what I read about the traps, which is fine except
I'm using django-trunk - updated this morning:
{{{
music...@brunswick:~/source/django-trunk$ svn info
Path: .
URL: http://code.djangoproject.com/svn/django/trunk
Repository Root: http://code.djangoproject.com/svn
Repository UUID: bcc190cf-cafb-0310-a4f2-bffc1f526a37
Revision: 12205
Node Kind: directory
Schedule: normal
Last Changed Author: zgoda
Last Changed Rev: 12205
Last Changed Date: 2010-01-11 20:25:10 +1100 (Mon, 11 Jan 2010)
}}}
Then I followed the
[http://docs.djangoproject.com/en/dev/ref/contrib/csrf/ dev instructions]
and am still getting errors, although they are new ones:
{{{
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/django/core/servers/basehttp.py",
line 279, in run
self.result = application(self.environ, self.start_response)
File "/usr/lib/pymodules/python2.6/django/core/servers/basehttp.py",
line 651, in __call__
return self.application(environ, start_response)
File "/usr/lib/pymodules/python2.6/django/core/handlers/wsgi.py", line
230, in __call__
self.load_middleware()
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line
46, in load_middleware
raise exceptions.ImproperlyConfigured, 'Middleware module "%s" does
not define a "%s" class' % (mw_module, mw_classname)
ImproperlyConfigured: Middleware module "django.contrib.csrf" does not
define a "CsrfViewMiddleware" class
}}}
From the dev instructions I've taken the new MIDDLEWARE_CLASS
'django.middleware.csrf.CsrfViewMiddleware' but otherwise have followed
tutorial instructions (ie, I'm using the RequestContext section of part 3
in teh csrf instructions...)
--
Ticket URL: <http://code.djangoproject.com/ticket/12177#comment:2>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.--
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en.