South�keeps�its�distance�from�models.py. south Migrating�with You're�never�sure�if�it's�from�the�past,�present�or�future. (see:�cheesy�time-travel�films)
A�migration! south Migrating�with from south.db import db from core.models import * cl ass Migration: def forwards(self): db.add_column("core_nation", "slug", models.SlugField(unique=True, default="test") ) def backwards(self): db.add_column("core_nation", "slug")
Migrations�are�per-app. south Migrating�with If�an�app�doesn't�need�migrations,�it�uses�syncdb�as�normal. If�apps�depend�on�others,�there's�a�dependency�resolver.
south Migrating�with # M ock M odel s User = db.mock_model(model_name='User', db_table='auth_user', db_tablespace='', pk_field_name='id', pk_field_type=models.AutoField) # M odel ' User Pr of i l e' db.create_table('core_userprofile', ( ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('user', models.OneToOneField(User, related_name="profile")), )) API�Example