Django, Mod-Python & CouchDB
24/09/2008 // 2 comments // Category: My Everything // Thẻ: couchdb, programming, python.I managed to have CouchDB running with Django inside mod_python, everything was installed on my Slackware 12.1 development server.
1. mod_python is compiled for Apache2, if you don’t know how then proceed here
2. I used official release from Django, check out here if you need help with the installation
3. Install Erlang, CouchDB as described in my previous post
4. Install CouchDB Python binding is easy with easy_install couchdb
5. I set up a virtualhost to run my couchdb-django testing (/etc/httpd/extra/httpd-vhosts.conf)
ServerAdmin abc@abc.com
DocumentRoot “/srv/djangocouchdb”
ServerName django.dev.com
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
PythonPath “[r'/srv/'] + sys.path”
SetHandler python-program
SetEnv DJANGO_SETTINGS_MODULE djangocouchdb.settings
PythonHandler django.core.handlers.modpython
PythonOption django.root /couchdb
PythonDebug On
(well, i made my /etc/hosts file to have entry for django.dev.com for sure )
6. Then I followed instruction from HERE to create my django project and couchdb app inside that project. And everything worked, just with a little problem (access denied) with PYTHON_EGG_CACHE which in my system refered to /root/.python-eggs. I reset PYTHON_EGG_CACHE to /tmp and restarted my server, then everything worked fine.
Now it’s time to explore more ![]()
2 Responses to “Django, Mod-Python & CouchDB”
Leave a Reply
Recent Posts
Recent Comments
- car on Google App Engine & cron jobs
- Rodrigo Marangon on Mod_python + Apache 2 + Slackware Error
- gabriel on Install packages for PEAR in XAMPP (Ubuntu Linux)
- mod_python on Apache 2 | Miscellaneous musings in beta on Mod_python + Apache 2 + Slackware Error
- Gilberto Ramos on Get back your Alt+Ctrl+Backspace in Karmic
Blogroll
car: nice engine, i'll try to pimp my ride
Rodrigo Marangon: Thanks for sharing! It was very helpful. Another way to make mod_python work is replacing the ...
gabriel: just the info that I was looking for... tnx ...
Gilberto Ramos: very useful! i was looking for this..!
Venkat Mantirraju: This is an excellent guide. Thanks a lot for your effort and time in making ...
How to clear DNS cache in Mac (Tiger, Leopard, Snow Leopard)
31/07/2010
Validation with Jquery
26/07/2010
Add your Google Apps email to Palm Pre
19/07/2010
Install packages for PEAR in XAMPP (Ubuntu Linux)
17/03/2010
Skype on Ubuntu Lucid Lynx 10.04
17/03/2010
Eclipse 3.5 Galileo on Ubuntu Jaunty 9.04
| 12 comments
Google App Engine & cron jobs
| 4 comments
vmware-tools on Slackware 12.1
| 3 comments
Django, Mod-Python & CouchDB
| 2 comments
Mapnik installation on Slackware 12.1
| 2 comments
- © 2009 Tech Mix. All rights reserved.
- WPLine 1.0 designed by Hutek - A member of Vietnam Wordpress Commnunity.
- Powered by Wordpress. Work fine on almost popular browsers.



October 1st, 2008 at 1:13 pm
Try mod-wsgi. It’s much faster than mod_python an has less memory overhead. You should also consider serving your static files with a webserver like nginx or lighttpd, and let them proxy requests to your python projects.
Btw. the man text on your site is hardly readable. Looks a little bit fuzzy.
Greetings John
October 2nd, 2008 at 2:49 pm
Thanks for the comment, John
I will take a look at mod_wsgi for sure, and for production one, nginx & lighttpd is a good fit for balancing the request.
Hopefully text is readable now.