Skip to content
Django Maintenance project
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
django_maintenance
templates/test_app
test_app
.gitignore
LICENSE
README.md
setup.cfg
setup.py

README.md

django-under-maintenance

Django middleware to put your application under maitenance. It works on a applicaton level, so your django aplication need to be running.

Installation

  • Install django-under-maintenance

  • Add to your middleware classes

     MIDDLEWARE_CLASSES = ( 
         'django.middleware.common.CommonMiddleware',    
         'django.contrib.sessions.middleware.SessionMiddleware',    
         'django.contrib.auth.middleware.AuthenticationMiddleware',    
         'django.middleware.doc.XViewMiddleware', 
         ....
         'django_maintenance.maintenance.DjangoMaintenance',
     )
    
  • Add the app:

      INSTALLED_APPS = (
          'django.contrib.admin',
          'django.contrib.auth',
          'django.contrib.contenttypes',
          ...,
          'django_maintenance',
      )
    

Commands

  • manage.py maintenance (on|off) - will (enable|dsable) maintenance mode.
You can’t perform that action at this time.