Skip to content

Instantly share code, notes, and snippets.

@marc-hughes
Created December 9, 2015 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marc-hughes/f27bab439bd7dbc16911 to your computer and use it in GitHub Desktop.
Save marc-hughes/f27bab439bd7dbc16911 to your computer and use it in GitHub Desktop.
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