I'm about to deploy a Django application to my WebFaction account (Django 1.3.1 under Python 2.7), and it makes use of several Python packages (i.e. Requests, Markdown, etc.). Where do I install those packages?
I read the docs and successfully installed a couple of packages under $HOME/lib/python2.7, but I wasn't clear as to whether the Django app would read those.
asked Feb 04 '12 at 19:32
Our official docs on installing python packages is here. ~/lib/pythonX.Y will work. The paths used are defined from a few places, system set defaults, what is set in your bash profile, and than what is defined in Apache and mod_wsgi. You can see a list of paths being used if you print 'sys.path' or enable DEBUG and look at the path list.
answered Feb 04 '12 at 19:41