Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Disabling CSRF is not working.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bill Freeman  
View profile  
 More options Oct 5 2012, 4:07 pm
From: Bill Freeman <ke1g...@gmail.com>
Date: Fri, 5 Oct 2012 16:06:54 -0400
Local: Fri, Oct 5 2012 4:06 pm
Subject: Re: Disabling CSRF is not working.
I believe that I read somewhere that newer Djangos force the CSRF
middleware even if it's not listed in MIDDLEWARE_CLASSES.

You could dive into the middleware code to see how this happens, and
come up with a stable strategy to circumvent it.  Or you could just
fix the necessary views and templates.  There is, after all, a chance
that you will want to be able to upgrade this site without jumping
through hoops.

On Thu, Oct 4, 2012 at 4:56 AM, Laxmikant Gurnalkar

<laxmikant.gurnal...@gmail.com> wrote:
> Hi, Guys

> Disabling CSRF is not working.
> These are my midlewares., Removed {% csrf_token %} all templates.

> 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',
> #    'django.middleware.csrf.CsrfResponseMiddleware',
> #     'igp_acfs.acfs.disablecsrf.DisableCSRF',
> )

> Also tried by writing disablecsrf.py like this :

> class DisableCSRF(object):
>     def process_request(self, request):
>         """
>         """
>         setattr(request, '_dont_enforce_csrf_checks', True)

> Thanks in Advance!!!

> Laxmikant

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.