This is a tutorial repo for Flask microframework
JavaScript Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
static
templates
.gitignore
README.md
app.py
config.py
db.py
helpers.py
manage.py
models.py
requirements.txt

README.md

This project aims at building a simple microblog using Flask. It starts with very basic Flask setup and then goes forwards to build a microblog based on SQLAlchemy.

Installation

  1. Setup a virtualenv (pip install virtualenv) virtualenv virtualenv_flask --no-site-packages
  2. Activate your virtualenv source virtualenv_flask/bin/activate `
  3. Install all the requirements pip install -r requirements.txt

Note: To deactivate the virtualenv, type deactivate

Running

If your folder has manage.py, type ./manage.py runserver Otherwise use python app.py

Important

Since the order of commits is very important to me in this repo, I will be rebasing quite often, and doing all sorts of weird stuff with the commit history. So, just to be on a safer side, when you pull from the repo, do it in this way:

git fetch --all
git reset --hard origin/master