Created
September 4, 2014 11:19
-
-
Save bmihelac/37643a8a84523535f172 to your computer and use it in GitHub Desktop.
Django 1.7. - use sqlite, no migrations in tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
if 'test' in sys.argv: | |
DATABASES = {'default': {'ENGINE': 'django.db.backends.sqlite3'}} | |
MIGRATION_MODULES = dict([(app, 'myapp.migrations_not_used_in_tests') | |
for app in INSTALLED_APPS]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment