Tuesday, November 29, 2011

Configuring django with wsgi

In the last couple weeks, I've fallen in love with django. Here are some notes (just for reference) on getting django to talk with R, numpy, and WSGI

#Getting the latest version of R on an older version of ubuntu:

#Using PIP and VirtualEnv with django

sudo apt-get install python-setuptools python-dev build-essential
pip install numpy
sudo pip install numpy
sudo pip install scipy
sudo pip install rpy2

I never quite cracked this one. It seems that by default, pip doesn't work with the bitnami djangostack. I just used easy_install, with good results.

#Configuring WSGI

Neither of these worked perfectly for me, but they got me to the point where I could figure it out.

#Serving static files with WSGI

Trust the django docs to have a good built-in explanation.

1 comment: