Talk:Flask

Clarification on Passenger_WSGI.py
I spent way too long trying to get the passenger_wsgi.py to work properly. Here is the procedure I went through that ended up working. I'm going to assume that you've already enabled Passenger through your Dreamhost panel. If you haven't do this. Make sure you've backed up your site first, because it WILL delete everything in yoursite.com/*.

1) Install a custom python 2.7.3 build via https://gist.github.com/wting/2839765 with the run option of --source. This will auto install python v2.7.3 along with virtualenv and pip.

2) Insert the following to your .bash_profile:

if [ -f ~/.bashrc ]; then . ~/.bashrc fi

This will make the custom version of python that you just installed run by default when you log in via SSH.

3) As per the wiki page, in directory '~', run 'virtualenv --no-site-packages --distribute /flask_env'. Then 'cd flask_env', 'source bin/activate', and 'pip install Flask'

4) Last but not least, with a virtual environment, the passenger_wsgi.py will not, as far as I can tell, work. Change directory to /bin. Now type 'pwd'. That is the absolute path that you need to stick into your passenger_wsgi.py. Go ahead and change the second line to say INTERP = ".

5) If you've done all this, it *should* work.

More info relevant info: http://stackoverflow.com/questions/10386520/cant-get-flask-running-using-passenger-wsgi-on-dreamhost-shared-hosting

--Csdrane (talk) 10:24, 17 August 2013 (PDT)