School is a twelve-year jail sentence where bad habits are the only curriculum truly learned.
John Taylor Gatto
I've been writing a simple Django application for Facebook these days. I'm really enjoying how clean Django's code is and its very well thought classes and methods. It really makes web development faster.
I started with some simple HTML running locally on Django's development server and then updated my templates to output FBML based on the value of a variable I called IN_FACEBOOK and inserted into my settings.py.
After adding PyFacebook to talk to Facebook's API from Python I configured my new application according to Facebook's instructions.
Finally I changed my router's port forwarding settings to allow Facebook to see my home server's public IP, which is dynamic and provided by my ISP.
Everything ran ok up to this point and then I started noticing that after each change on my application's code Facebook returned a blank page with an HTTP 200 message.
It seemed like a connection issue and I moved the application to my real server, which has a fixed public IP, but the problem persisted. After every code change Facebook returned a blank page with the HTTP 200 message. I needed to refresh the browser three or more times to get my application loading.
My application is still on development but even so I decided to replace Django's server with an Apache and mod_python setup.
Presto¡ That was the source of the problem. It seems Django's development server response time is too high for Facebook.
Related content
- How to use a public IP address with Google App Engine development server
- How to setup Apache, mod_python and a reverse proxy to Lighttpd for Django on Ubuntu
- PYTHONPATH and configuring Django with Apache and mod_python
- Django questions and answers with a Swedish guy
- Regular expressions, Friedl and Kodos
Also visit
Other Resources
- Cloud based Task Management Software
- Top rated project scheduling software
- Daniel E Straus Aveta

Recent comments
4 weeks 15 hours ago
4 weeks 1 day ago
10 weeks 1 day ago
11 weeks 2 days ago
13 weeks 23 hours ago
17 weeks 1 day ago
19 weeks 19 hours ago
20 weeks 1 day ago
20 weeks 2 days ago
20 weeks 3 days ago