Looks like it did something, I didn't get a 403 but I got this error:
Traceback:
File "/Library/Python/2.6/site-packages/django/core/handlers/base.py"
in get_response
91. request.path_info)
File "/Library/Python/2.6/site-packages/django/core/urlresolvers.py"
in resolve
216. sub_match = pattern.resolve(new_path)
File "/Library/Python/2.6/site-packages/django/core/urlresolvers.py"
in resolve
123. return self.callback, args, kwargs
File "/Library/Python/2.6/site-packages/django/core/urlresolvers.py"
in _get_callback
129. self._callback = get_callable(self._callback_str)
File "/Library/Python/2.6/site-packages/django/utils/functional.py" in
wrapper
124. result = func(*args)
File "/Library/Python/2.6/site-packages/django/core/urlresolvers.py"
in get_callable
56. lookup_view = getattr(import_module(mod_name),
func_name)
File "/Library/Python/2.6/site-packages/django/utils/importlib.py" in
import_module
28. raise TypeError("relative imports require the
'package' argument")
Exception Type: TypeError at /accounts/login/
Exception Value: relative imports require the 'package' argument
On Jun 9, 11:07 pm, Roshan Mathews <[email protected]> wrote:
> On Thu, Jun 10, 2010 at 11:08, joelklabo <[email protected]> wrote:
> > MIDDLEWARE_CLASSES = (
> > 'django.middleware.common.CommonMiddleware',
> > 'django.contrib.sessions.middleware.SessionMiddleware',
> > 'django.middleware.csrf.CsrfViewMiddleware',
> > 'django.contrib.auth.middleware.AuthenticationMiddleware',
> > 'django.contrib.messages.middleware.MessageMiddleware',
> > )
>
> Can you add 'django.middleware.csrf.CsrfResponseMiddleware',
> after CsrfViewMiddleware above?
>
> The docs [1] say that this is only required in the legacy method, but
> {% csrf_token %} doesn't work for me without the
> CsrfResponseMiddleware. Dunno if something is broken somewhere or did
> I misread the steps involved.
>
> The docs also say "Use of the CsrfResponseMiddleware is not
> recommended ..." so it would be nice if someone else can fix your
> problem, but can you please try this and see if it works?
>
> [1]http://docs.djangoproject.com/en/dev/ref/contrib/csrf/
>
> --http://roshan.mathews.in/
--
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.