/expert-octo-fortnight

Start of a project, we'll see where it goes

Primary LanguagePython

expert-octo-fortnight

Build Status Coverage Status

Work in Progress Disclaimer

This is a work in progress

Installation / Running

Installation

Run make setup to configure a virutal environment called env which will have all the necessary python packages installed.

Database Setup

Prior to running the server, you need to create the database:

./manage.py createdb will create a dev database.

./manage.py --config_prod createdb will create a production database.

Running

Migrating the Database

If, at any point in the development, you make a change to the models for the database:

./manage.py migratedb will migrate the dev database.

./manage.py --config_prod migratedb will migrate the production database.

Shell

./manage.py shell will run a shell from which you have issue python commands in the virutal env to the database, etc.

Running it

To run a development server, run make run. This will output logs to stdout.

To run a production server, run make production. This will run a production server.