Skip to main content

Django Supermigrate

Django Supermigrate is a package to manage migrations on production and development environment with no hassle.

Quick start

  1. Add “supermigrate” to your INSTALLED_APPS like this:

    ```
    INSTALLED_APPS = (
        ...
        'supermigrate',
    )
    ```
  2. Modify your DATABASE_ROUTERS to include ‘default’ router like this:

    ```
    DATABASE_ROUTERS  = [ 'supermigrate.database_routers.default.DefaultRouter', ]
    ```
  3. Add DATABASE_ROUTER_MAPPING in settings like this:

    ```
        DATABASE_ROUTER_MAPPING = {
    
            # default db
            "admin" : {
                "DB_FOR_READ": "default_slave",
                "DB_FOR_WRITE": "default",
                "DB_FOR_MIGRATE": ["default", "default_slave"]
            },
            "auth" : {
                "DB_FOR_READ": "default",
                "DB_FOR_WRITE": "default",
                "DB_FOR_MIGRATE": ["default", "default_slave"]
            }
    
            # other db here
    
        }
    ```
  4. Update settings for live with

    ```
    ALLOW_MIGRATE_FALSE = False
    
    ALLOW_DB_MIGRATE = {
        'default': True
    }
    ```

Metadata

Release files for django-supermigrate 0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-supermigrate 0.6
File Size Uploaded Provenance Actions
django-supermigrate-0.6.tar.gz 3.8 kB Without provenance Details for django-supermigrate-0.6.tar.gz

Release files / django-supermigrate-0.6.tar.gz

Download URL django-supermigrate-0.6.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f0f58be2c662b54033c326493e5cfb2bda7afc70280647523e8785b24be5d831
BLAKE2b-256 checksum
How to use checksums
9edbb1bd724350c4cde5459052d940401d85f0b3850ca8e74f9a6e6da1485995
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-supermigrate 0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page