|
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. Thanks. |
|
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. Thanks. Answering my own question, I think I'm looking for the section here that discusses installing a package to a specific application: http://docs.webfaction.com/software/python.html#installing-packages-with-pip |