Skip to content

Instantly share code, notes, and snippets.

@chronossc
Created February 24, 2015 14:47
Show Gist options
  • Save chronossc/9136508f07600b95ccff to your computer and use it in GitHub Desktop.
Save chronossc/9136508f07600b95ccff to your computer and use it in GitHub Desktop.
Disable migrations in Django 1.7
class DisableMigrations(dict):
def __contains__(self, item):
return True
def __getitem__(self, item):
return "notmigrations"
MIGRATION_MODULES=DisableMigrations()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment