Your project description goes here
Project description
Your project description goes here
Documentation
The full documentation is at https://django-maintenance-window.readthedocs.io.
Quickstart
Install django-maintenance-window:
pip install django-maintenance-window
Add it to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'django-solo',
'django_maintenance_window',
...
)
Add django-maintenance-window’s middleware to the middleware:
MIDDLEWARE_CLASSES = [
...
'django_maintenance_window.middleware.MaintenanceModeMiddleware',
...
]
or
MIDDLEWARE = [
...
'django_maintenance_window.middleware.MaintenanceModeMiddleware',
...
]
Settings
- MAINTENANCE_TEMPLATE = ‘django_maintenance_window/maintenance.html’
Overwrite the template that is used for the maintenance template
- MAINTENANCE_DISPLAY_END_DATE = False
If the end date should be displayed at the bottom of the page.
Running Tests
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
Credits
Tools used in rendering this package:
History
0.1.0 (2017-10-26)
First release on PyPI.
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
File details
Details for the file django-maintenance-window-0.1.0.tar.gz
.
File metadata
- Download URL: django-maintenance-window-0.1.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80a38015efaf1c2c1d67b0d4918eb6f89a53e1306fc9e468bcffb97c158b5631 |
|
MD5 | d0452f5761b9bb51221e3df5c4b9fc6e |
|
BLAKE2b-256 | 4d7b55b1c1d88433b8e33b61a26384a1fc5aacf3e066a761d39e0a48fba2cb0b |