Skip to content

ajoyoommen/weblog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Django-powered blog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published