.. image:: https://badge.fury.io/py/django-maintenance-window.svg :target: https://badge.fury.io/py/django-maintenance-window
.. image:: https://travis-ci.org/JostCrow/django-maintenance-window.svg?branch=master :target: https://travis-ci.org/JostCrow/django-maintenance-window
.. image:: https://codecov.io/gh/JostCrow/django-maintenance-window/branch/master/graph/badge.svg :target: https://codecov.io/gh/JostCrow/django-maintenance-window
.. image:: https://lintly.com/gh/JostCrow/django-maintenance-window/badge.svg :target: https://lintly.com/gh/JostCrow/django-maintenance-window/ :alt: Lintly
.. image:: https://bettercodehub.com/edge/badge/JostCrow/django-maintenance-window?branch=master :target: https://bettercodehub.com/results/JostCrow/django-maintenance-window
.. image:: https://api.codeclimate.com/v1/badges/6583656ee5ab17179caf/maintainability :target: https://codeclimate.com/github/JostCrow/django-maintenance-window/maintainability :alt: Maintainability
Your project description goes here
The full documentation is at https://django-maintenance-window.readthedocs.io.
Install django-maintenance-window::
pip install django-maintenance-window
Add it to your INSTALLED_APPS
:
.. code-block:: python
INSTALLED_APPS = (
...
'django-solo',
'django_maintenance_window',
...
)
Add django-maintenance-window's middleware to the middleware:
.. code-block:: python
MIDDLEWARE_CLASSES = [
...
'django_maintenance_window.middleware.MaintenanceModeMiddleware',
...
]
or
.. code-block:: python
MIDDLEWARE = [
...
'django_maintenance_window.middleware.MaintenanceModeMiddleware',
...
]
Does the code actually work?
::
source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox
Tools used in rendering this package:
cookiecutter-djangopackage
_.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _cookiecutter-djangopackage
: https://github.com/pydanny/cookiecutter-djangopackage