From Fedora Project Wiki
(Created page with "wget https://raw.github.com/pypa/virtualenv/master/virtualenv.py")
 
Line 1: Line 1:
wget https://raw.github.com/pypa/virtualenv/master/virtualenv.py
= Setup =
 
Create directory to hold virtualenv
mkdir python_web
cd python_web
 
Create virtualenv & install flask
wget https://raw.github.com/pypa/virtualenv/master/virtualenv.py
python virtualenv.py flask
source flask/bin/activate
pip install flask flask-sqlalchemy flask-wtf
 
Create directory/file structure
mkdir hello_world
cd hello_world
mkdir static templates
touch app.py config.py

Revision as of 15:29, 5 December 2012

Setup

Create directory to hold virtualenv

mkdir python_web
cd python_web

Create virtualenv & install flask

wget https://raw.github.com/pypa/virtualenv/master/virtualenv.py
python virtualenv.py flask
source flask/bin/activate
pip install flask flask-sqlalchemy flask-wtf

Create directory/file structure

mkdir hello_world
cd hello_world
mkdir static templates
touch app.py config.py