scripts/reset_db.sh
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 20 Jan 2011 01:36:37 +0530
changeset 479 fdaf0d8ceb53
parent 441 10f16121a46b
permissions -rwxr-xr-x
Add additional div tags and use % based values for all properties instead of pixel based. The core ideas of using multiple containers among other things as commented in the CSS file are taken from http://www.maxdesign.com.au/articles/css-layouts/three-liquid/# giving them the due credits they deserve. Thank you very much guys. I was struggling to get a fully liquid three-column layout. I made some changes as per my ideas.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
413
49b58b9b10a1 Add reset_db script.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     1
#! /bin/bash
49b58b9b10a1 Add reset_db script.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     2
49b58b9b10a1 Add reset_db script.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     3
sudo -u postgres dropdb pytask
49b58b9b10a1 Add reset_db script.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     4
sudo -u postgres createdb -O pytask pytask
416
265dbd81c451 Remove initial south migrations also during reset of the database.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 413
diff changeset
     5
rm -r pytask/profile/migrations/
265dbd81c451 Remove initial south migrations also during reset of the database.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 413
diff changeset
     6
rm -r pytask/taskapp/migrations/
265dbd81c451 Remove initial south migrations also during reset of the database.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 413
diff changeset
     7
./bin/django schemamigration profile --initial
265dbd81c451 Remove initial south migrations also during reset of the database.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 413
diff changeset
     8
./bin/django schemamigration taskapp --initial
413
49b58b9b10a1 Add reset_db script.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     9
./bin/django syncdb
49b58b9b10a1 Add reset_db script.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    10
./bin/django migrate profile
49b58b9b10a1 Add reset_db script.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    11
./bin/django migrate taskapp
49b58b9b10a1 Add reset_db script.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    12
./bin/django loaddata sites_fixture.json 
441
10f16121a46b Update the reset db script to seed profile also.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 416
diff changeset
    13
./bin/django loaddata profile_fixture.json