Thanks João, indeed, after reading the link, what I needed was to *add* it. So now I have:
MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', 'django.contrib.csrf.middleware.CsrfMiddleware', ) And everything seems to be working fine. Alan On 26 Aug, 17:50, João Rodrigues <jvrodrig...@gmail.com> wrote: > what about 'django.contrib.csrf.middleware.CsrfMiddleware' > ?http://docs.djangoproject.com/en/1.0/ref/contrib/csrf/#how-to-use-it > > On 26 August 2010 16:33, Alan <alanwil...@gmail.com> wrote: > > > > > > > Ops, sorry, but I don't have this line > > django.middleware.csrf.CsrfViewMiddleware, as I said, it's a project > > done in 1.0.2. and I want it to run on my django 1.2 but without any > > reference to Csrf, since the server where the portal is runs 1.0.2 > > yet. > > > On 26 Aug, 15:54, João Rodrigues <jvrodrig...@gmail.com> wrote: > > > go to your settings.py and comment out > > > django.middleware.csrf.CsrfViewMiddleware in your MIDDLEWARE_CLASSES > > > > On 26 August 2010 10:33, Alan <alanwil...@gmail.com> wrote: > > > > > Hi there, > > > > > I developed in a system that uses django 1.2, but the server is still > > > > django 1.0.2. > > > > > Upgrading for a moment is not possible. Unless someone knows a nice > > > > simple alternative, in order to keep my web portal compatible between > > > > 1.0.2 and 1.2, I would like to switch off CSRF on my developing > > > > computer. > > > > > How can I do this simply and easily? > > > > > Many thanks, > > > > > Alan > > > > > -- > > > > 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<django-users%2bunsubscr...@google > > > > groups.com> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/django-users?hl=en. > > > -- > > 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 > > athttp://groups.google.com/group/django-users?hl=en. -- 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.