Source

mti-flask /

Filename Size Date modified Message
static
templates
142 B
1.4 KB
591 B
575 B
4.3 KB
1.4 KB
5.4 KB
308 B
172 B
2.2 KB
1.3 KB
28.3 KB

mti-flask

Prerequisites

Optionally install MongoDB from the official MongoDB repository.

sudo apt-add-repository "deb http://downloads.mongodb.org/distros/ubuntu 10.10 10gen"
sudo apt-get install mongodb-stable

Install system dependencies.

sudo apt-get install python-setuptools python-dev build-essential mercurial yui-compressor
sudo easy_install -U pip
sudo pip install -U virtualenv
sudo pip install -U virtualenvwrapper

Configure virtualenvwrapper by editing ~/.bashrc

# ~/.bashrc
# virtualenvwrapper and pip
export VIRTUALENV_USE_DISTRIBUTE=1
export WORKON_HOME=$HOME/src/virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
export PIP_VIRTUALENV_BASE=$WORKON_HOME
export PIP_RESPECT_VIRTUALENV=true

Activate ~/.bashrc and create the WORKON_HOME directory

source ~/.bashrc
mkdir -p $WORKON_HOME

Installation

hg clone http://bitbucket.org/marcusti/mti-flask
cd mti-flask

mkvirtualenv mti-flask
workon mti-flask
pip install -U -r requirements.pip

Configuration

mv config_local.example.py config_local.py

Running the server

python manage runserver