Clone the Git repository:
git clone git://github.com/alex-morega/agenda-politicieni.git cd agenda-politicieni
Create a Virtualenv, activate it:
virtualenv sandbox echo '*' > sandbox/.gitignore . sandbox/bin/activate
Install dependencies:
pip install -r requirements-dev.txt
Create an instance folder and configuration file:
mkdir instance echo "SECRET_KEY = 'some_random_stuff'" > instance/settings.py
Create the database structure using migrations:
python migrations/manage.py version_control sqlite:///instance/agenda.db migrations python migrations/manage.py upgrade sqlite:///instance/agenda.db migrations
Import some data:
curl 'http://agenda.grep.ro/download?format=json' > instance/datadump.json python agenda.py shell >>> import database >>> database.import_json('instance/datadump.json')
Run the development server:
python agenda.py runserver