This is my template file for new flask projects, passenger_wsgi.py is for dreamhost python evn.
Setup Instructions:
-
Clone template project:
- git clone https://github.com/siko/flask-empty.git project-name.git
- cd project-name.git
- git branch project-name
- git checkout project-name
-
Setup virtualenv: (From inside the project-name folder)
If virtualenv isn't installed run, easy_install pip; pip install virtualenv
virtualenv .
. bin/activate
pip install Flask
- Run Sample:
python run.py