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
- nandha63 on Eclipse 3.5 Galileo on Ubuntu Jaunty 9.04
- Gilberto Ramos on Get back your Alt+Ctrl+Backspace in Karmic
- Venkat Mantirraju on Eclipse 3.5 Galileo on Ubuntu Jaunty 9.04
- vinay on Google App Engine & cron jobs
- Abhishek Ransingh on Eclipse 3.5 Galileo on Ubuntu Jaunty 9.04
Blogroll
nandha63: works just fine man . . . . nice work mam . . . . . ...
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 ...
vinay: i am testing it on my local appengine . created successfully a cron.yaml and its
Abhishek Ransingh: Hi All, I've done all the steps which has been mentioned above. But, when last ...
Hamachi on Ubuntu Karmic Koala 9.10 error
27/10/2009
Speedup your flock browser (applied to firefox too)
25/10/2009
Get back your Alt+Ctrl+Backspace in Karmic
18/10/2009
Duplicate a website like Teleport on Ubuntu Jaunty Linux
14/10/2009
Looking no more! I found the best Mind Map for my Ubuntu
06/10/2009
Eclipse 3.5 Galileo on Ubuntu Jaunty 9.04
| 13 comments
vmware-tools on Slackware 12.1
| 3 comments
Google App Engine & cron jobs
| 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.