Skip to content

Instantly share code, notes, and snippets.

View c-rhodes's full-sized avatar

Cullen Rhodes c-rhodes

  • Arm
  • Manchester, UK
View GitHub Profile
@c-rhodes
c-rhodes / settings_test_snippet.py
Last active August 29, 2015 14:14 — forked from NotSqrt/settings_test_snippet.py
A solution to avoid migrations when testing in Django 1.7, the config is set in manage.py so no environment variables have to be set
# settings.py
class DisableMigrations(object):
def __contains__(self, item):
return True
def __getitem__(self, item):
return "notmigrations"