package to manage migrations on production and development environment simultaneously
Project description
Djang Supermigrate is a package to manage migrations on production and development environment with no hassle.
Quick start
Add “supermigrate” to your INSTALLED_APPS like this:
``` INSTALLED_APPS = ( ... 'supermigrate', ) ```
Modify your DATABASE_ROUTERS to include ‘default’ router like this:
``` DATABASE_ROUTERS = [ 'supermigrate.database_routers.default.DefaultRouter', ] ```
Add DATABASE_ROUTER_MAPPING in settings like this:
``` DATABASE_ROUTER_MAPPING = { # default db "admin" : "default", "auth" : "default", "contenttypes" : "default", "sites" : "default", "sessions" : "default", # other db here } ```
Update settings for live with
``` ALLOW_MIGRATE_FALSE = False ALLOW_DB_MIGRATE = { 'default': True } ```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.