django-dbsettings icon indicating copy to clipboard operation
django-dbsettings copied to clipboard

django-dbsettings prevents django.contrib.sites from being installed.

Open francescortiz opened this issue 8 years ago • 1 comments

The error:

django.db.migrations.exceptions.InconsistentMigrationHistory: Migration dbsettings.0001_initial is applied before its dependency sites.0001_initial on database 'default'.

Instead of making sites mandatory, there is a migration that adapts itself to the app. Now I have to use a custom MIGRATIONS_MODULES setting with a sanitized migration in order to bypass this. I think that it would have been more consistent to make django.contrib.sites mandatory.

francescortiz avatar Feb 26 '17 18:02 francescortiz

Sites framework will stay optional. Your error is strange since the migration lists its dependency on sites. Or have you added sites later, after you had performed initial migration for dbsettings?

zlorf avatar Aug 02 '19 08:08 zlorf