scripts/reset_db.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 20 Jan 2011 05:59:47 +0530
changeset 484 d2a4fcbe2fae
parent 441 10f16121a46b
permissions -rwxr-xr-x
A python script to load the data of tasks from CSV to database.

#! /bin/bash

sudo -u postgres dropdb pytask
sudo -u postgres createdb -O pytask pytask
rm -r pytask/profile/migrations/
rm -r pytask/taskapp/migrations/
./bin/django schemamigration profile --initial
./bin/django schemamigration taskapp --initial
./bin/django syncdb
./bin/django migrate profile
./bin/django migrate taskapp
./bin/django loaddata sites_fixture.json 
./bin/django loaddata profile_fixture.json