{"repo":"fabiocaccamo/django-maintenance-mode","free":true,"listed":false,"github":"https://github.com/fabiocaccamo/django-maintenance-mode","clone":"git clone https://github.com/fabiocaccamo/django-maintenance-mode.git","description":":construction: :hammer_and_wrench: shows a 503 error page when maintenance-mode is on.","language":"Python","stars":527,"topics":["django","python","maintenance-mode","pypi","maintenance","503","service-unavailable"],"license":"MIT","category":"databases-storage","readme_excerpt":"django-maintenance-mode django-maintenance-mode shows a 503 error page when maintenance-mode is on . It works at application level, so your django instance should be up. It doesn't use database and doesn't prevent database access. Installation 1. Run pip install django-maintenance-mode or download django-maintenance-mode and add the maintenance mode package to your project 2. Add maintenance mode to settings.INSTALLED APPS before custom applications 3. Add maintenance mode.middleware.MaintenanceModeMiddleware to settings.MIDDLEWARE as last middleware (see note below) 4. Add your custom templates/503.html file 5. Restart your application server [!NOTE] Middleware position: by default the middleware runs last, so preceding middleware (session, auth, etc.) still executes during maintenance mode. To skip that (eg. during DB migrations or automated deployments), move MaintenanceModeMiddleware higher up and use MAINTENANCE MODE IGNORE URLS to keep specific URLs accessible. Note: skipping middleware also disables its features (eg. request.user ), so user-based settings ( MAINTENANCE MODE IGNORE USER ) won't work. Configuration (optional) Settings All these settings are optional, if not defined in settings.py the default values (listed below) will be used. Retrieve user's real IP address using django-ipware : Context Processors Add maintenance mode.context processors.maintenance mode to your context processors list in settings.py if you want to access the maintenance mode status in y","default_branch":null,"files":null,"tree":[],"storefront":"/r/fabiocaccamo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fabiocaccamo/django-maintenance-mode/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}