Where is csrf middleware for Django 1.1.1?

2010-01-26 Thread Ivan Uemlianin
Dear All

I am trying to locate the csrf middleware.  I have Django 1.1.1 but it
doesn't seem to have the module as documented [1]:

$ python manage.py shell
>>> import django
>>> django.VERSION
(1, 1, 1, 'final', 0)
>>> import django.contrib.csrf.middleware.CsrfMiddleware
Traceback (most recent call last):
  File "", line 1, in 
ImportError: No module named CsrfMiddleware
>>> import django.contrib.csrf.middleware.CsrfViewMiddleware
Traceback (most recent call last):
  File "", line 1, in 
ImportError: No module named CsrfViewMiddleware
>>> import django.contrib.csrf.middleware.CsrfResponseMiddleware
Traceback (most recent call last):
  File "", line 1, in 
ImportError: No module named CsrfResponseMiddleware
>>> import django.contrib.csrf.middleware
>>>

Please can anyone help me resolve this problem?

Best wishes

Ivan


[1] csrf for 1.1
http://docs.djangoproject.com/en/1.1/ref/contrib/csrf/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Where is csrf middleware for Django 1.1.1?

2010-01-26 Thread Karen Tracey
On Tue, Jan 26, 2010 at 12:02 PM, Ivan Uemlianin  wrote:

> Dear All
>
> I am trying to locate the csrf middleware.  I have Django 1.1.1 but it
> doesn't seem to have the module as documented [1]:
>
>
(InteractiveConsole)
>>> import django
>>> django.get_version()
'1.1.1'
>>> from django.contrib.csrf.middleware import CsrfMiddleware
>>> from django.contrib.csrf.middleware import CsrfViewMiddleware
>>> from django.contrib.csrf.middleware import CsrfResponseMiddleware
>>>

Karen

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.