Re: Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-25 Thread Mark Gensler
Try adding your ngrok domain to the list of CSRF_TRUSTED_ORIGINS: https://docs.djangoproject.com/en/4.1/ref/settings/#csrf-trusted-origins E.g. assuming you're using https: CSRF_TRUSTED_ORIGINS = ["https://*.ngrok.io;] On Wednesday, November 23, 2022 at 2:22:14 PM UTC dhana...@gmail.com wrote:

Re: Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-23 Thread Nagaraja Tuticorin
Make your database as a public make format of database chmod www-data=www-data ./filename On Wed, 23 Nov, 2022, 7:33 am Chukwudi Onwusa, wrote: > Check your template, immediately after the opening tag add > {% csrf_token %} > If you have it already, kindly check to ensure it's correctly spelt

Re: Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-23 Thread Nagaraja Tuticorin
Make your database as a public make format of database chmod www-data=www-data ./filename On Wed, 23 Nov, 2022, 5:28 am Carlos Roberto, wrote: > Hi everyone! > > I use ngrok to make my projects available in django. I'm having trouble > accessing the admin page. After I enter the username and

Re: Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-22 Thread Chukwudi Onwusa
Check your template, immediately after the opening tag add {% csrf_token %} If you have it already, kindly check to ensure it's correctly spelt and placed and then restart your server. Best Regards. On Wed, Nov 23, 2022, 00:58 Carlos Roberto wrote: > Hi everyone! > > I use ngrok to make my

Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-22 Thread Carlos Roberto
Hi everyone! I use ngrok to make my projects available in django. I'm having trouble accessing the admin page. After I enter the username and password I get the error 403. Has anyone had the same problem and could help me? Regards -- You received this message because you are subscribed to

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-30 Thread 'Amitesh Sahay' via Django users
package. from django.views.decorators.csrf import csrf_exemptstackoverflow.com | From: django-users@googlegroups.com on behalf of coolguy Sent: July 29, 2020 10:05 PM To: Django users Subject: Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with no

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-30 Thread Isha Thakur
M To: Django users Subject: Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected By default, Django checks for the CSRF token in all POST requests. Remember to include the csrf_token tag in all forms that are submitted via POST. Please

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-30 Thread Christian Seberino
coolguy Remember to include the csrf_token tag in all forms that are submitted via > POST. > Yes! It must be INSIDE the form element *not* outside! I'm so grateful for your help. All the Best, Chris -- You received this message because you are subscribed to the Google Groups "Django

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-30 Thread Christian Seberino
Amitesh Indeed your suggestion below fixed everything. I can't thank you enough! cs On Wednesday, July 29, 2020 at 8:59:52 PM UTC-5, Amitesh Sahay wrote: > > Generally, {% csrf_token %} is written just below the opening tag. > I mean, not sure if this has anything to do with your issue.

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-29 Thread Christian Seberino
Amitesh Oh my thank you so much. I actually did move the csrf token outside the form element. That may be it. I will check that soon. On Wed, Jul 29, 2020, 8:59 PM 'Amitesh Sahay' via Django users < django-users@googlegroups.com> wrote: > Generally, {% csrf_token %} is written just below the

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-29 Thread coolguy
By default, Django checks for the CSRF token in all POST requests. Remember to include the csrf_token tag in all forms that are submitted via POST. Place csrf_token within form tag... e.g. {% csrf_token%} tag On Wednesday, July 29, 2020 at 9:57:41 PM UTC-4, Christian Seberino wrote: > >

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-29 Thread coolguy
By default, Django checks for the CSRF token in all POST requests. Remember to include the csrf_token tag in all forms that are submitted via POST. Please place csrf_token in tag. You have placed it outside of form tag. On Wednesday, July 29, 2020 at 9:57:41 PM UTC-4, Christian Seberino

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-29 Thread 'Amitesh Sahay' via Django users
Generally, {% csrf_token %} is written just below the opening tag. I mean, not sure if this has anything to do with your issue. Others may confirm as well Regards, Amitesh On Thursday, 30 July, 2020, 07:26:21 am IST, Christian Seberino wrote: Here is my template... {% extends

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-29 Thread Christian Seberino
Here is my template... {% extends "html_base" %} {% block body_elements %} UPDATE STATUSES {% for e in both %}

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-29 Thread coolguy
No. What i said the link you sent gives the validation error since fields are blank. Its not working the same way as you. Can you send the code for your html template. On Wednesday, July 29, 2020 at 6:53:29 PM UTC-4, Christian Seberino wrote: > > > > On Wednesday, July 29, 2020 at 5:29:53 PM

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-29 Thread coolguy
No. What i said the link you sent gives the validation error since fields are blank. Its nothing working the same way as you. Can you send the code for your html template. On Wednesday, July 29, 2020 at 6:53:29 PM UTC-4, Christian Seberino wrote: > > > > On Wednesday, July 29, 2020 at 5:29:53

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-29 Thread Christian Seberino
On Wednesday, July 29, 2020 at 5:29:53 PM UTC-5, coolguy wrote: > > Tired your link for the form. If this is the form you are concerned about > then the message that pops up is for validation i.e. form.is_valid(). > Did you see the CSRF error I got?. Here is a pic https://imgur.com/a/LIRBadQ

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-29 Thread coolguy
Tired your link for the form. If this is the form you are concerned about then the message that pops up is for validation i.e. form.is_valid(). On Wednesday, July 29, 2020 at 4:55:33 PM UTC-4, Christian Seberino wrote: > > I have a Django app with multiple forms on various pages. They all work

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-29 Thread Taofeek Jimoh Iyanda
Check this website, it may be helpful https://www.techiediaries.com/django-react-forms-csrf-axios/ On Wednesday, July 29, 2020 at 9:55:33 PM UTC+1, Christian Seberino wrote: > > I have a Django app with multiple forms on various pages. They all work > except for one with just an optional

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-29 Thread Christian Seberino
Here is the problematic url... > https://grandmas4hire.com/admin_status/ > Just press submit button w/o doing anything else and you'll see -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

2020-07-29 Thread Christian Seberino
I have a Django app with multiple forms on various pages. They all work except for one with just an optional checkbox... I checked and they all have templates with {% csrf_token %}. The only thing special but the problematic form is that I have a checkbox input that is optional. That

CSRF verification failed. Request aborted.

2016-04-27 Thread Jagga Soorma
verification failed. Request aborted. -- if I manually remove the .xxx.com domain cookie then it works fine. Looks like horizon matches the .xxx.com (not fqdn) cookie instead of its own yyy.xxx.com. Not sure how cookies work and was wondering if anyone on this list can help point me in the correct

Re: django handling requests - getting CSRF verification failed. Request aborted.

2015-05-28 Thread Shekar Tippur
Larry, I think I needed to append as_view() to the url. url(r'^setProfile/', AddToUserProfile.as_view()), I will try the other curl option as well. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: django handling requests - getting CSRF verification failed. Request aborted.

2015-05-28 Thread Larry Martell
On Thu, May 28, 2015 at 9:31 AM, Shekar Tippur wrote: > Hello, > > I am trying to post a request via curl. I get a CSRF verification failed > message. > > Here is the entry in my urls.py > > url(r'^setProfile/', AddToUserProfile), > > > class

django handling requests - getting CSRF verification failed. Request aborted.

2015-05-28 Thread Shekar Tippur
Hello, I am trying to post a request via curl. I get a CSRF verification failed message. Here is the entry in my urls.py url(r'^setProfile/', AddToUserProfile), class AddToUserProfile(generics.ListAPIView): queryset = UserPrefs.objects.all() serializer_class = UserPrefSerializer

Re: CSRF verification failed. Request aborted.

2015-01-24 Thread Stephen J. Butler
endif %} >> > >> > >> > >> > {% csrf_token %} >> > >> > >> > {% for opcion in opciones %} >> > > > value="{{ opciones.id }}" /> >> > {{ opcion.d_spanish >> > }} >> > >> > {% endfor %} >> > &

Re: CSRF verification failed. Request aborted.

2015-01-24 Thread Cornelio Royer Climent
; > > > > > {% if error_message %}{{ error_message }}{% > endif %} > > > > > > > > {% csrf_token %} > > > > > > {% for opcion in opciones %} > > > value="{{ opciones.id }}" /> > > {{ opcion.d_spanish > > }} > >

Re: CSRF verification failed. Request aborted.

2015-01-24 Thread Larry Martell
r_message %}{{ error_message }}{% endif %} > > > > {% csrf_token %} > > > {% for opcion in opciones %} > value="{{ opciones.id }}" /> > {{ opcion.d_spanish > }} > > {% endfor %} > > > > > Forbidden (403) > > CSRF verific

CSRF verification failed. Request aborted.

2015-01-24 Thread Cornelio Royer Climent
(403) CSRF verification failed. Request aborted. Help Reason given for failure: CSRF token missing or incorrect. In general, this can occur when there is a genuine Cross Site Request Forgery, or when Django's CSRF mechanism <http://docs.djangoproject.com/en/dev/ref/contrib/csrf/#

Re: cant pass the "CSRF verification failed. Request aborted." error

2014-10-09 Thread Collin Anderson
> > ok now to learn how to catch that url > will something like this would work? > url(r'^thanks/(?Pw+)/$', views.thanks), > That should work in theory, although the "w" in the regular expression won't match the @ sign or the periods. If you use the /thanks/?email=y...@email.etc you can use

Re: cant pass the "CSRF verification failed. Request aborted." error

2014-10-09 Thread dk
Ah nice trick, store the variables into the url and then pass the url with some regular expression. =) def vote(request): if request.method == "POST": form = polls.forms_DK.NameForm(request.POST) if form.is_valid(): *your_email **=

Re: cant pass the "CSRF verification failed. Request aborted." error

2014-10-08 Thread Collin Anderson
> > cant pass the "CSRF verification failed. Request aborted." error Does it say why? > and looks like if you use the "render" function should be the easiest way > since will take care of everything. > I also tried removing the tags from the html and I s

Re: cant pass the "CSRF verification failed. Request aborted." error

2014-10-07 Thread dk
I am using 1.7 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to

Re: CSRF verification failed. Request aborted.

2012-07-11 Thread JJ Zolper
> RequestContext for the template, instead of Context. > >>>> your view should looks like > >>>> > >>>> def about(request): > >>>> if request.method == 'POST': > >>>> return HttpRe

Re: CSRF verification failed. Request aborted.

2012-07-11 Thread JJ Zolper
>>> context_instance=RequestContext(request)) >>> else: >>> raise Http404() >>> >>> note that you redirect (HttpResponseRedirect) to url, but >>> render (render_to_response) template with context >>> >>> also I changed a

Re: CSRF verification failed. Request aborted.

2012-07-11 Thread JJ Zolper
e view >> >> hope this helps >> >> 2012/7/10 JJ Zolper <codinga...@gmail.com> >> >>> Here is the error I received with debug set to true for Django: >>> >>> Forbidden (403) >>> >>> CSRF verification failed. Request abor

Re: CSRF verification failed. Request aborted.

2012-07-11 Thread JJ Zolper
mplate with context > > also I changed action for form in tempalte to /about/ to handle POST and > GET requests in same view > > hope this helps > > 2012/7/10 JJ Zolper <codinga...@gmail.com> > >> Here is the error I received with debug set to true for Dja

Re: CSRF verification failed. Request aborted.

2012-07-11 Thread Sergiy Khohlov
;>> return render_to_response('about.html', >>>> context_instance=RequestContext(request)) >>>> else: >>>> raise Http404() >>>> >>>> note that you redirect (HttpResponseRedirect) to url, but render >>>

Re: CSRF verification failed. Request aborted.

2012-07-11 Thread Сергей Фурсов
gt;> return render_to_response('about.html', >>> context_instance=RequestContext(request)) >>> else: >>> raise Http404() >>> >>> note that you redirect (HttpResponseRedirect) to url, but >>> render (render_to_response) t

Re: CSRF verification failed. Request aborted.

2012-07-11 Thread Сергей Фурсов
about/ to handle POST and >> GET requests in same view >> >> hope this helps >> >> 2012/7/10 JJ Zolper <codinga...@gmail.com> >> >>> Here is the error I received with debug set to true for Django: >>> >>> Forbidden (403) >>>

Re: CSRF verification failed. Request aborted.

2012-07-11 Thread Сергей Фурсов
ion for form in tempalte to /about/ to handle POST and > GET requests in same view > > hope this helps > > 2012/7/10 JJ Zolper <codinga...@gmail.com> > >> Here is the error I received with debug set to true for Django: >> >> Forbidden (403) >> >> C

Re: CSRF verification failed. Request aborted.

2012-07-10 Thread Сергей Фурсов
mplate with context also I changed action for form in tempalte to /about/ to handle POST and GET requests in same view hope this helps 2012/7/10 JJ Zolper <codinga...@gmail.com> > Here is the error I received with debug set to true for Django: > > Forbidden (403) > > CSRF verificat

CSRF verification failed. Request aborted.

2012-07-09 Thread JJ Zolper
Here is the error I received with debug set to true for Django: Forbidden (403) CSRF verification failed. Request aborted. Help Reason given for failure: CSRF token missing or incorrect. In general, this can occur when there is a genuine Cross Site Request Forgery, or when Django's

Re: CSRF verification failed. Request aborted.

2012-05-18 Thread doniyor
as Kurtis said, you need {% csrf_token %} and your rendering response should be something like this: return render_to_response('index.html', {'your_key': your_value},context_instance=RequestContext(request)) and those your value will be rendered thru youe_key tag. here is how your form

CSRF verification failed. Request aborted.

2012-05-18 Thread plogult...@yahoo.com.cn
I find a code, but the Django version is 0.9, I am using 1.4 and I am a new learner, I want to run below code but report CSRF verification failed. from django.http import HttpResponse text = """ + """ def index(request): if request.POST.has_key('a'): a =

Re: Only Two Users Get : Forbidden (403) CSRF verification failed. Request aborted. Options

2012-05-11 Thread Sebastian Goll
On Thu, 10 May 2012 23:56:50 -0700 (PDT) Johan wrote: > Hi thanks for the quick reply. After some more investigation I am quite > sure that this is exactly the issue. Thanks again for the quick reply. Now > to just find an elegant way to let the user know that they need to

Re: Only Two Users Get : Forbidden (403) CSRF verification failed. Request aborted. Options

2012-05-11 Thread Johan
Hi thanks for the quick reply. After some more investigation I am quite sure that this is exactly the issue. Thanks again for the quick reply. Now to just find an elegant way to let the user know that they need to have Cookies enabled to access my site :) On Thursday, 10 May 2012 18:24:13

Re: Only Two Users Get : Forbidden (403) CSRF verification failed. Request aborted. Options

2012-05-10 Thread Nikolas Stevenson-Molnar
Django uses cookies for CSRF. Is it possible these two users have cookies disabled? https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#how-it-works _Nik On 5/10/2012 7:56 AM, Johan wrote: > Hi > > Does anybody maybee have some pointers for me? I have a site up and > running and it has

Only Two Users Get : Forbidden (403) CSRF verification failed. Request aborted. Options

2012-05-10 Thread Johan
Hi Does anybody maybee have some pointers for me? I have a site up and running and it has worked perfectly for hundreds of users. Except that today I got two users (from the same company, although others from the same company has used it perfectly well) who are getting the [CSRF verification

Re: CSRF verification failed. Request aborted.

2011-10-23 Thread ch3ka
On Sat, 22 Oct 2011 20:32:02 +0100 Kayode Odeyemi wrote: > On Sat, Oct 22, 2011 at 9:40 PM, wrote: > > Drupal cannot know about the CSRF token it has to send. > > > > You'd need to disable the CSRF-Check for that view. > > You can use the csrf_exempt

Re: CSRF verification failed. Request aborted.

2011-10-22 Thread Kayode Odeyemi
ST API such as > > piston, django-tastypie. > > > > A few days ago, I'm smiling and happy that it all worked. Today, it's > > a different story. I'm currently getting: > > > > Forbidden (403) > > > > CSRF verification failed. Request aborted. > > Of co

Re: CSRF verification failed. Request aborted.

2011-10-22 Thread web2 . 0+google
l worked. Today, it's > a different story. I'm currently getting: > > Forbidden (403) > > CSRF verification failed. Request aborted. Of course. Drupal cannot know about the CSRF token it has to send. You'd need to disable the CSRF-Check for that view. You can use the csrf

CSRF verification failed. Request aborted.

2011-10-22 Thread Kayode Odeyemi
failed. Request aborted. Help Reason given for failure: No CSRF or session cookie. In general, this can occur when there is a genuine Cross Site Request Forgery, or when Django's CSRF mechanism has not been used correctly. For POST forms, you need to ensure: The view function uses

Re: CSRF verification failed. Request aborted.

2011-02-24 Thread Tom Evans
On Thu, Feb 24, 2011 at 10:00 AM, Ankit Rai wrote: > There is the problem "django1.2.5"  has some more security updates beacuse > of which your old code may break . Citation? > > Your code will start working after you add @csrf_exempt in all your views > .And cross check

Re: CSRF verification failed. Request aborted.

2011-02-24 Thread Kenneth Gonsalves
On Thu, 2011-02-24 at 15:30 +0530, Ankit Rai wrote: > Your code will start working after you add @csrf_exempt in all your > views why should he exempt all his views from csrf checking? -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received

Re: CSRF verification failed. Request aborted.

2011-02-24 Thread Ankit Rai
There is the problem "django1.2.5" has some more security updates beacuse of which your old code may break . Your code will start working after you add @csrf_exempt in all your views .And cross check your settings.py middleware classes ('django.middleware.common.CommonMiddleware',

Re: CSRF verification failed. Request aborted.

2011-02-24 Thread Kenneth Gonsalves
On Thu, 2011-02-24 at 01:55 -0800, luca72 wrote: > (1, 2, 5, 'final', 0) and one more thing - how are you deploying? -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this message because you are subscribed to the Google Groups

Re: CSRF verification failed. Request aborted.

2011-02-24 Thread luca72
(1, 2, 5, 'final', 0) Thanks Luca On 24 Feb, 10:50, Ankit Rai wrote: > after removing add @csrf_exempt, it will work retsart the server. > > Which version of django are you using > to know version > type follwoing cmd > python > import django > django.VERSION > > On Thu,

Re: CSRF verification failed. Request aborted.

2011-02-24 Thread Ankit Rai
after removing add @csrf_exempt, it will work retsart the server. Which version of django are you using to know version type follwoing cmd python import django django.VERSION On Thu, Feb 24, 2011 at 3:18 PM, luca72 wrote: > removing @crsf_protect i get the same error > >

Re: CSRF verification failed. Request aborted.

2011-02-24 Thread luca72
removing @crsf_protect i get the same error On 24 Feb, 10:34, Kenneth Gonsalves wrote: > On Thu, 2011-02-24 at 01:20 -0800, luca72 wrote: > > @csrf_protect > > try removing this > -- > regards > KGhttp://lawgon.livejournal.com > Coimbatore LUG

Re: CSRF verification failed. Request aborted.

2011-02-24 Thread Kenneth Gonsalves
On Thu, 2011-02-24 at 01:20 -0800, luca72 wrote: > @csrf_protect try removing this -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: CSRF verification failed. Request aborted.

2011-02-24 Thread Kenneth Gonsalves
On Thu, 2011-02-24 at 00:54 -0800, luca72 wrote: > I get CSRF verification failed. Request aborted. after the submit you have to use RequestContext if you are using csrf - also make sure csrf middleware is loaded. -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox h

Re: Forbidden (403) CSRF verification failed. Request aborted.

2011-01-27 Thread hank23
OK. I'll check all of that out, including the article. In the meantime can you possibly explain the "title" field shown coded on the form in the Django file upload document? It's shown coded on the form but I don't think it's referenced anymore after that in the document and I would like to know

Re: Forbidden (403) CSRF verification failed. Request aborted.

2011-01-25 Thread Jonas Geiregat
Hey, I've also struggled with CSRF for a while. Maybe I can give you some guidance. > you need to ensure: > > •The view function uses RequestContext for the template, instead of > Context. > •In the template, there is a {% csrf_token %} template tag inside each > POST form that targets an

Forbidden (403) CSRF verification failed. Request aborted.

2011-01-25 Thread hank23
I'm trying to write the code and implement a file upload screen based on this document: http://docs.djangoproject.com/en/1.2/topics/http/file-uploads I'm getting the following error: Forbidden (403) CSRF verification failed. Request aborted. Help Reason given for failure: CSRF token

Re: CSRF verification failed. Request aborted.

2010-12-22 Thread Harbhag Singh Sohal
> What you're doing should be fine, in terms of whether it works or not. > However, I'd strongly recommend against passing locals(). While it may seem > to violate DRY to do anything else, experience has shown me that it makes > maintaining the code a lot harder in the long run, as it's not

Re: CSRF verification failed. Request aborted.

2010-12-22 Thread Dan Fairs
> from django.template import RequestContext > return render_to_response('abook_view.html', > locals(),context_instance=RequestContext(request)) What you're doing should be fine, in terms of whether it works or not. However, I'd strongly recommend against passing locals(). While it may seem to

Re: CSRF verification failed. Request aborted.

2010-12-22 Thread Harbhag Singh Sohal
from django.template import RequestContext return render_to_response('abook_view.html', locals(),context_instance=RequestContext(request)) this is what I am using. Is it ok ? -- Harbhag Singh Sohal http://harbhag.wordpress.com -- You received this message because you are subscribed to the

Re: CSRF verification failed. Request aborted.

2010-12-22 Thread robos85
Do You pass *RequestContext* to your template during rendering it in view? Example from manual: def my_view(request): c = {} # ... return render_to_response("a_template.html", c, context_instance=RequestContext(request)) -- You received this message

Re: CSRF verification failed. Request aborted.

2010-12-22 Thread Harbhag Singh Sohal
I am also using {% csrf_token %}, even then I am getting error. -- 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

CSRF verification failed. Request aborted.

2010-12-22 Thread Harbhag Singh Sohal
MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware',

Re: Forbidden (403) - CSRF verification failed. Request aborted.

2010-12-20 Thread Daniel Roseman
On 17 December 2010 19:46, hank23 wrote: > Thanks for the note. Below is the screen code again which I've changed > a little, plus the two views which deal with it. Let me know if you > need anything else. Here's the screen code: > > Add Poll Question Screen > > {% if

Forbidden (403) - CSRF verification failed. Request aborted.

2010-12-17 Thread Daniel Roseman
It's not just the view that processes the form that needs RequestContext - the one that generates it does too. Normally these are the same view, but it looks from your code that you are posting to a different view. Perhaps you could show the code of the other one and we'll see what is wrong

Forbidden (403) - CSRF verification failed. Request aborted.

2010-12-17 Thread hank23
I have pretty much completed the intro. tutorial for django. I'm now trying to add some actual updating screens to the existing site, to experiment and also to try to figure out more how everything works. I'm currently trying to code an "addpoll" screen which I've coded to look like this: Add

Re: Updated to revision 12207, now CSRF verification failed. Request aborted.

2010-01-11 Thread neridaj
I guess I had to add the middleware even though I'm using django.contrib.comments and generic views? On Jan 11, 7:12 pm, neridaj wrote: > what's up with this now. I'm suing contrib apps and generic views > i.e., no middleware needed, and I've added {% csrf_token %} to my POST

Updated to revision 12207, now CSRF verification failed. Request aborted.

2010-01-11 Thread neridaj
what's up with this now. I'm suing contrib apps and generic views i.e., no middleware needed, and I've added {% csrf_token %} to my POST forms but can't get rid of this. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send