Created
December 9, 2015 20:54
-
-
Save marc-hughes/f27bab439bd7dbc16911 to your computer and use it in GitHub Desktop.
This file contains 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
class DisableMigrations(object): | |
def __contains__(self, item): | |
return True | |
def __getitem__(self, item): | |
return "notmigrations" | |
TESTS_IN_PROGRESS = False | |
if 'test' in sys.argv[1:] or 'jenkins' in sys.argv[1:]: | |
logging.disable(logging.CRITICAL) | |
PASSWORD_HASHERS = ( | |
'django.contrib.auth.hashers.MD5PasswordHasher', | |
) | |
DEBUG = False | |
TEMPLATE_DEBUG = False | |
TESTS_IN_PROGRESS = True | |
MIGRATION_MODULES = DisableMigrations() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment