Skip to content

Instantly share code, notes, and snippets.

@dlobue
Created August 13, 2015 21:55
Show Gist options
  • Save dlobue/fa55d7437f504b23cd0a to your computer and use it in GitHub Desktop.
Save dlobue/fa55d7437f504b23cd0a to your computer and use it in GitHub Desktop.
disable migrations
from frontend.settings.dev import *
class DisableMigrations(object):
def __contains__(self, item):
return True
def __getitem__(self, item):
return "notmigrations"
MIGRATION_MODULES = DisableMigrations()
@dlobue
Copy link
Author

dlobue commented Aug 13, 2015

put local_settings.py in frontend/frontend/

export DJANGO_SETTINGS_MODULE=frontend.local_settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment