login community faq

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.

asked Feb 04 '12 at 19:32

adebarros's gravatar image

adebarros
33118


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

johns's gravatar image

johns ♦♦
340427

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

(Feb 04 '12 at 20:32) adebarros adebarros's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×643
×229

Asked: Feb 04 '12 at 19:32

Seen: 1,007 times

Last updated: Feb 05 '12 at 09:14

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited