basic-blog
A sample implementation of a blog intended to capture example usage of Flask and Bootstrap. Take a look at the live version on Heroku.
Setup
git clone https://github.com/QuicksilverJohny/basic-blog.git
cd basic-blog
pip install -r requirements.txt
- Setup dabase (see below)
python application.py
ORforeman start
###Option 1: Postgres DB###
Start a postgres server and add to your ~/.profile
:
export DB_URL=postgres://$DB_USER:$DB_PASSWORD@$DB_HOST:$DB_PORT/$DB_DATABASE
###Option 2: SQLite DB###
Replace import psycopg2
with import pysqlite2
(NOTE: this will not work on Heroku) and instead set:
export DB_URL=sqlite:///test.db