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 thi

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 **= form.cleaned_data["your_e

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 django-users@googl