Ok! I will check. Thank you!
On Sun, Jul 21, 2013 at 4:27 AM, Fred Stluka wrote:
> Karl,
>
> You are calling render_to_response() wrong. See the docs at:
>
> https://docs.djangoproject.com/en/dev/topics/http/shortcuts/#render-to-response
>
> Instead of:
>
>
> variables = Reque
Karl,
You are calling render_to_response() wrong. See the docs at:
https://docs.djangoproject.com/en/dev/topics/http/shortcuts/#render-to-response
Instead of:
variables = RequestContext(request, {
'bookmarks':[bookmark],
'show_edit'
I am sorry, i am really new to this things. Could you please point me out
as to where I should add it.
*js file:
*function bookmark_edit() {
var item = $(this).parent();
var url = item.find(".title").attr("href");
item.load("/save/?ajax&url=" + escape(url), null, function () {
Karl,
Since you already have a form, and are already submitting it
as an Ajax request via JavaScript, the easiest way is to just
put the {% csrf_token %} in the Django template for the page.
We do that for our Ajax forms.
If you are not using a Django template to generate the form,
there are lot
Hi,
In my users page, i have in place editing with ajax. And when i click edit,
it works fine. But when i submit the form, it don't do anything. When i
checked, this is the error:
CSRF verification failed. Request aborted.
So, how do I place {% csrf_token %} in my javascript? Please advice.
Than
5 matches
Mail list logo