Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
francescortiz opened this issue Feb 26, 2017 · 1 comment

Comments

@francescortiz
Copy link

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.

@zlorf
Copy link
Owner

zlorf commented Aug 2, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants