Closed szelga closed 11 years ago
we should add an initial schemamigration because there was no south support before.
manage.py migrate dynamic_site
command will create necessary db schema then.
Sorry, i didn't understand. Why need we south "support"? You can use south for other django apps, even if there is no initial migration in django-tools.
A initial schema migration is only needed if we change the db schema in dynamic_site.
initial migration is necessary: it's a foundation for subsequent database changes.
Yes, but only for the app which change his model. The dynamic site model has no schema migration. Do you plan to change the dynamic site models?
It's not needed that every INSTALLED_APPS has initial migration.
Did I miss something?
if you will change models in the future, you will need initial migration.
Yes. But we only need it then. I didn't see the need for to doing this now.
One reason to do it if it's needed: Maybe south would also be change in the future and the inital migration must be updated, too.
maybe you don't use south very often? here's the workflow with django and south:
python manage.py migrate
and south automatically updates db schema.
for further information you can read this document: http://south.readthedocs.org/en/latest/tutorial/part1.html
It's enough to create a initial migration before we change the model. It's not needed to create it now.
Do you know the --fake
argument? See: http://south.readthedocs.org/en/latest/convertinganapp.html
Thx for contribution.
But why should we add a initial migration, without any schema change?
Btw. i'm work on django1.5 support, see: https://github.com/jedie/django-tools/compare/django1.5