My personal blog built with django.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
blog
static
weblog
.gitignore
.travis.yml
LICENSE.txt
README.md
manage.py
requirements.txt

README.md

Weblog

Build Status

This is the source code of my blog powered by Django.

Getting started

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.txt

Create 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 migrate

Run a developement server

python manage.py runserver

Running tests

You 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