This is the repository for the Noisebridge Python class project.
Converting an existing installation to South
1. Sync the database to add the South table
2. Fake apply the intial migration
bin/django migrate profiles 0001 --fake
This was the state of the database upon moving to South. It will pretend to apply the migration and set this as the first migration point. Everything after this should work normally through the standard process of applying migrations.
Using South to migrate
Full documentation is available at http://south.readthedocs.org/en/latest/index.html
- Make some changes to the model in the app appname
- Create a migration
If you're changing an existing model use
bin/django schemamigration appname --auto
however, if you're creating an entirely new model you'll want
bin/django schemamigration appname --initial
3. Migrate your changes
bin/django migrate appname
Multiple migrations will be made sequentially with this command if necessary.
Keep in mind that each app needs to have migrations created and applied individually. For example, if git pulls migrations for two apps you'll need to run
bin/django migrate app1 bin/django migrate app2
Installation using buildout
To install run the following commands
1. Clone Repo from github
git clone firstname.lastname@example.org:noisebridge/pyclass-project.git cd pyclass-project
2. Run the bootstrap to setup the environment.
python bootstrap.py ./bin/buildout
3. sync the django database
4. Apply the intial migrations
bin/django migrate profiles
5. Start the app