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 revert the last migration?

I've made a migration that added a new table and want to revert it and delete the migration, without creating …

django django-migrations
Django - makemigrations - No changes detected

I was trying to create migrations within an existing app using the makemigrations command but it outputs "No changes detected". …

python django django-migrations
Django 1.7 - makemigrations not detecting changes

As the title says, I can't seem to get migrations working. The app was originally under 1.6, so I understand that …

python django django-1.7 django-migrations
How to simplify migrations in Django 1.7?

There are already similar questions for South, but I have started my project with Django 1.7 and am not using South. …

django django-migrations django-1.7
django 1.7 migrate gets error "table already exists"

I am trying to apply a migration but am getting the error: django.db.utils.OperationalError: (1050, "Table 'customers_customer' already …

django django-south django-1.7 django-migrations
Django migration strategy for renaming a model and relationship fields

I'm planning to rename several models in an existing Django project where there are many other models that have foreign …

python django django-migrations
"No installed app with label 'admin'" running Django migration. The app is installed correctly

I am trying to use admin.LogEntry objects during a datamigration on Django 1.7 The 'django.contrib.admin' app is listed …

python django django-admin django-migrations
How to reset migrations in Django 1.7

(I know there is a title the same as this, but the question is different). I have managed to get …

django migration django-south django-migrations
Django migrate --fake and --fake-initial explained

I've been a user of Django for about 2 years now and there is a feature I have always been afraid …

django django-models django-migrations
Django 1.8: Create initial migrations for existing schema

I started a django 1.8 project, which uses the migrations system. Somehow along the way things got messy, so I erased …

django django-migrations