Skip to main content

Disable migrations when running your Django tests.

Project description

Django Test Without Migrations: Disable migrations when running your Django tests

Test Status Code Helth Latest PyPI version Number of PyPI downloads License

Test Without Migrations is a test command extension.

The new Django 1.7 and 1.8 migration backend demands that you create a migration every time you change a model.

This can be inconvenient when you’re just trying to explore your models code.

In older Django versions, with South we could use the SOUTH_TEST_MIGRATIONS settings to tell Django to simply create all model tables without running migrations.

This app adds this capability to Django by extending the test command with a –nomigrations option.


Test Without Migrations works with Django 1.7+.

To install it, simply:

$ pip install django-test-without-migrations

Then add it to your INSTALLED_APPS on your

    # ...


Inform the flag –nomigrations when running your tests:

$ python test --nomigrations


This library was directly inspired by this solution:


The MIT License.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-test-without-migrations, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size django_test_without_migrations-0.2-py2.py3-none-any.whl (5.7 kB) File type Wheel Python version 2.7 Upload date Hashes View hashes
Filename, size django-test-without-migrations-0.2.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page