Re: another CSRF question -- and django hitcount

2014-12-06 Thread Eric Abrahamsen
Eric Abrahamsen writes: Apologies for the very stupid posting below! I did my homework, and actually used the JQuery ajax function, like I was supposed to. Incidentally, I also had the "async" keyword on the tag in the head that loaded jquery, and that apparently killed the

another CSRF question -- and django hitcount

2014-12-06 Thread Eric Abrahamsen
I have a question about the django-hitcount app that I think is likely csrf-related. I recently upgraded a site from Django 1.4 all the way to 1.7. I've got most everything working fine, except that the hitcount app I've been using[1], stopped recording hits. Nevermind the actual app, it works

Re: csrf question

2014-05-15 Thread G Z
solved it from django.shortcuts import render from django.http import HttpResponse from vmware.models import Customer from django.shortcuts import render_to_response from vmware.models import Vms from .forms import SignUpForm from vmware.models import Vmspecs from django.views.decorators.csrf

Re: csrf question

2014-05-15 Thread G Z
What do you mean, If i take it out of the ctx dictionary how do I pass it. if I just declare the @csrf_protect I still get the token error trying to post my form, infact the csrf issue is the only thing I have left to fix. How are you supposed to do the csrf token because im following the

Re: csrf question

2014-05-15 Thread donarb
On Wednesday, May 14, 2014 11:35:46 PM UTC-7, G Z wrote: > > So I read the documentation on passing csrf tokens, however its giving me > an issue i think its because im trying to pass it as a dictonary variable > with my form and customers. > > This is from the documentation > > from

Re: csrf question

2014-05-15 Thread Bob Gailer
On May 15, 2014 2:36 AM, "G Z" wrote: > > So I read the documentation on passing csrf tokens, however its giving me an issue i think its because im trying to pass it as a dictonary variable with my form and customers. > > This is from the documentation > > from

csrf question

2014-05-15 Thread G Z
So I read the documentation on passing csrf tokens, however its giving me an issue i think its because im trying to pass it as a dictonary variable with my form and customers. This is from the documentation from django.views.decorators.csrf import csrf_protectfrom django.shortcuts import

CSRF question

2011-02-24 Thread CristiM1
Hi, how can I make a RESTful interface working with CSRF if there are multiple servers involved. So we have a REST API that will be deployed on one server and multiple servers for retrieving the HTML (this HTML will use AJAX to call the REST) thanks, Cristian -- You received this message