WebFaction
Community site: login 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 04 Feb '12, 19:32

adebarros
332410
accept rate: 0%


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.

permanent link

answered 04 Feb '12, 19:41

johns
5.4k312
accept rate: 23%

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

(04 Feb '12, 20:32) adebarros
Your answer
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

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×337

question asked: 04 Feb '12, 19:32

question was seen: 6,851 times

last updated: 05 Feb '12, 09:14

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM