WebFaction
Community site: login faq

I've created a document for setting up Flask using a virtual environment on webfaction. I would be glad for feedback or any way to make it better.

https://paper.dropbox.com/doc/Install-Flask-on-webfaction-upBJ3Ya6tcg0aRKI9lxE6

Notice the one hack I added. Anyone have a way around it?

asked 09 Aug, 14:39

bradrice's gravatar image

bradrice
151511
accept rate: 0%


You don't need to use activate_this.py in your application.

The correct way to use a virtualenv with mod_wsgi is to set WSGIPythonHome in your httpd.conf, like this:

WSGIPythonHome /home/username/.virtualenvs/my_app
permanent link

answered 09 Aug, 15:27

seanf's gravatar image

seanf ♦♦
11.9k21333
accept rate: 37%

I thought that would work, but it doesn't for me. I get a Gateway timeout error when I use it.

(09 Aug, 20:32) bradrice bradrice's gravatar image

That shouldn't happen. Feel free to open a support ticket if you'd like us to take a look.

(09 Aug, 21:20) seanf ♦♦ seanf's gravatar image
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:

×332
×52
×51
×42

question asked: 09 Aug, 14:39

question was seen: 256 times

last updated: 09 Aug, 21:20

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 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