Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Creates any database tables that have not already been created. (you'll be asked to NO NOT create a django admin account at this poing):

Code Block
./bin/django syncdb

...

Run the migration scripts:

...

You may have to repeat this process a few times.

Load static files:

Code Block

./bin/django build_static -l 

Create users in the database:

Code Block

./bin/django shell
from django.contrib.auth.models import User
from users.models import Profile
Profile.objects.create(user=User.objects.get(pk=1))

Use Ctrl+D to exit the shell.

Set up the initial datathe microsite data, then create the superuser:

Code Block
./bin/django loaddata apps/materials/fixtures/initial_datamicrosites.json
./bin/django loaddata apps/materials/fixtures/microsites.jsoncreatesuperuser

Remove the compiled python files:

...