This is the source code of my blog powered by Django.
Clone this repository
git clone git@github.com:ajoyoommen/weblog.git
cd weblog/Ensure you have virtualenv installed. Also postgresql and libpq-dev or its equivalent. Create and activate a new virtual environment.
pip install -r requirements.txtCreate a database for the blog. Export database credentials as enviroment variables.
export DBNAME=weblog
export DBPASS=password
export DBUSER=postgres
export STATIC_ROOT=/home/user/static/
export MEDIA_ROOT=/home/user/media/Create database schema for the application
python manage.py migrateRun a developement server
python manage.py runserverYou can run tests using the postgres database by running
./manage.py test
In memory tests (faster) can be run using:
./manage.py test --settings=weblog.settings.tests