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.

MySQL vs PostgreSQL? Which should I choose for my Django project?

My Django project is going to be backed by a large database with several hundred thousand entries, and will need …

mysql django database postgresql django-migrations
ValueError: Related model u'app.model' cannot be resolved

I have two applications (ook and eek say) and I want to use a foreign key to a model in …

django django-models django-migrations
How to recreate a deleted table with Django Migrations?

There are two models Groups and Students and only one table for Groups of them, the Students table was deleted. …

python django postgresql django-models django-migrations
Django "You have unapplied migrations". Which ones?

Django runserver complains: You have unapplied migrations; your app may not work properly until they are applied. Run 'python manage.…

django django-migrations
How to squash recent Django migrations?

In Django's migrations code, there's a squashmigrations command which: "Squashes the migrations for app_label up to and including migration_…

django django-migrations
Disable migrations when running unit tests in Django 1.7

Django 1.7 introduced database migrations. When running the unit tests in Django 1.7, it forces a migrate, that takes a long time. …

django unit-testing django-migrations
ValueError: Dependency on app with no migrations: customuser

I am trying to start a webpage using the Django framework. This is my first web development project. After creating …

python django python-3.x django-migrations unhandled-exception
How can I skip a migration with Django migrate command?

First, I am asking about Django migration introduced in 1.7, not south. Suppose I have migrations 001_add_field_x, 002_add_field_…

python django django-models django-migrations
Django 1.7 blank CharField/TextField convention

Using Django's new migration framework, let's say I have the following model that already exists in the database: class TestModel(…

python django django-1.7 django-migrations
Django Migrations Add Field with Default as Function of Model

I added a new, non-nullable field to my Django model and am trying to use migrations to deploy that change. …

django django-models django-migrations