WebFaction
Community site: login faq

HI,

I'm running a website using django. However, I am using nginx to serve static files.

I'm attempting to use the django_facebook app and am running into an issue that appears to be resolved by modifying the conf file for the server.

here is what I've found: http://blog.rogeriopvl.com/archives/nginx-and-the-http-options-method/

more directly, this: error_page 405 =200 @405;

asked 13 Mar '13, 23:31

bugeyed
1124
accept rate: 0%

For the serving of static files it's unlikely that this would make any difference, however could I ask you to please log a support ticket with us so that we can look at your site in greater detail so that we can better assist? Thanks, Wayne K | WebFaction Support

(14 Mar '13, 00:56) waynek

Hi bugeyed,

I replied to the support ticket that you opened, but I will also post a summary here as well:

That blog post that you mentioned does not apply to your situation because you are using Nginx as a proxy for your Django app -- not to serve static files. In this case, Nginx simply passes the OPTIONS header along to Django.

The "405 METHOD NOT ALLOWED" error is being produced by your Django app because you are trying to issue GET requests to a handler that only allows POST requests.

When you figure out the full solution to your problem, please post it here so that other people with similar problems can also benefit from this.

Thanks! :)

~Christopher S. | WebFaction Support

permanent link

answered 14 Mar '13, 20:50

likebike
3366
accept rate: 28%

You're super correct.

I installed the django_facebook app via "pip install django_facebook"

this installed 5.0alpha i believe, which, if you compare the view files they're considerably different. I'm not entirely positive if it's ready. unfortunately i don't have the time to dig through that code to see where the issue is (otherwise i'd roll my own app)

however, I did remove that version and installed the current one available on github, listed at 4.0 https://github.com/tschellenbach/Django-facebook

I knew it was working right away because I was met with a django error page regarding some changes for django 1.5 and the url template tag

permanent link

answered 14 Mar '13, 21:58

bugeyed
1124
accept rate: 0%

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:

×909
×186
×6

question asked: 13 Mar '13, 23:31

question was seen: 10,314 times

last updated: 14 Mar '13, 21:58

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 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