Created
February 24, 2015 14:47
-
-
Save chronossc/9136508f07600b95ccff to your computer and use it in GitHub Desktop.
Disable migrations in Django 1.7
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(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