WebFaction
Community site: login faq
0
1

I am trying to publish my django site but I am having problems with ajax request/post. Firebug returns a 403 FORBIDDEN message when trying to log in or submit information. The site is www.abcurbano.com .

I am new to this, sorry if it is a silly question.

asked 21 Mar '11, 16:10

vierja
323
accept rate: 0%


With so little to go on, it's tough to be sure, but my guess is that your form didn't include a CSRF field, so Django is outright rejecting it for security reasons.

You have a few options, all of which are outlined in the Django documentation so I'll just point you there:

http://docs.djangoproject.com/en/1.2/ref/contrib/csrf/

Read the whole page, since there's a lot in there and it's important stuff to know.

permanent link

answered 21 Mar '11, 16:56

danielquinn
1211410
accept rate: 14%

Thanks, that fixed my problem.

(22 Mar '11, 11:16) vierja
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×910
×8

question asked: 21 Mar '11, 16:10

question was seen: 4,156 times

last updated: 22 Mar '11, 11:16

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM