Top "Django-migrations" questions

Django migrations are a way to apply changes to a database previously created, introduced in Django 1.7. This tool is used when a model is modified (adding a field, deleting a model, etc.

How to add a new field to a model with new Django migrations?

I'm using the contribute_to_class method but I don't know how to create the field in the database with …

django django-models django-1.7 django-migrations
Django 1.8 Run a specific migration

In django 1.8 is there a way to run a specific migration and that migration only. Not for one app only …

django migration django-migrations
Django-DB-Migrations: cannot ALTER TABLE because it has pending trigger events

I want to remove null=True from a TextField: - footer=models.TextField(null=True, blank=True) + footer=models.TextField(…

python django postgresql django-migrations
Check for pending Django migrations

In Django, is there an easy way to check whether all database migrations have been run? I've found manage.py …

python django django-migrations
How to migrate back from initial migration in Django 1.7?

I created a new app with some models and now I noticed that some of the models are poorly thought …

python django django-1.7 django-migrations
Django Programming error column does not exist even after running migrations

I run python manage.py makemigrations and I get: No changes detected Then, python manage.py migrate and I get: …

django django-migrations
How to redo a migration on django 1.8 after using --fake

Something went wrong on my migrations, I added a new datetimefield to a model then I used makemigrations and migrate. …

django django-migrations django-1.8
Can I use a database view as a model in Django?

i'd like to use a view i've created in my database as the source for my django-view. Is this possible, …

django django-migrations django-syncdb
django 1.7 migrations -- how do I clear all migrations and start over from scratch?

So I'm rapidly iterating on a django app at the moment and I'm constantly adjusting models.py. Over the course …

django database-migration django-south django-1.7 django-migrations
Django manage.py: Migration applied before its dependency

When running python manage.py migrate I encounter this error: django.db.migrations.exceptions.InconsistentMigrationHistory: Migration <appname>.0016_auto_&…

django django-admin django-migrations django-manage.py