This is the repository for the Noisebridge Python class project.
Sync the database to add the South table :: bin/django syncdb
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.
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
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
To install run the following commands
Clone Repo from github ::
git clone git@github.com:noisebridge/pyclass-project.git cd pyclass-project
Run the bootstrap to setup the environment. :: python bootstrap.py ./bin/buildout
sync the django database :: bin/django syncdb
Apply the intial migrations :: bin/django migrate profiles
Start the app :: bin/django runserver
Copy the http:// address into your web browser :: i.e. Development server is running at http://127.0.0.1:8000/