Skip to main content

Run migrations on every request

Project description

Django Migrate Middleware

Run migrations on every request

Install

pip install django-migrate-middleware

In the django settings file add package to the middleware settings.

INSTALLED_APPS = [
    ...
    "migrate_middleware"
    ...
]

MIDDLEWARE = [
    "migrate_middleware.MigrateMiddleware",
    ...
]

Configuration

  • MIGRATE_MIDDLEWARE_COLOR_OUTPUT: force color output

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_migrate_middleware-3.0.0.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

django_migrate_middleware-3.0.0-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page