Django Maintain Notice
Project description
Installation
pip install django-maintain
Usage
# Django-Maintain Settings DJANGO_SITE_MAINTAIN = False # Default ``False``, Modify ``True`` when maintain DJANGO_SITE_MAINTAIN_NOTICE_URL = ''
Settings.py
# Use `MIDDLEWARE_CLASSES` prior to Django 1.10 MIDDLEWARE = [ ... # 'competion.middleware.SiteMaintainMiddleware', # hasattr(request, 'user') == False 'django.contrib.auth.middleware.AuthenticationMiddleware', 'competion.middleware.SiteMaintainMiddleware', # hasattr(request, 'user') == True ... ]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-maintain-1.0.0.tar.gz
(1.8 kB
view hashes)
Built Distribution
Close
Hashes for django_maintain-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0a07dae2745f7aea2301f6b10bccad434450a2ca2932f8c925c901b68dc25ad |
|
MD5 | bb142bea805b10a81afdd3af9656878f |
|
BLAKE2b-256 | 676713ca3d5fabdeff7b97323dc5abea085339898b8132f01a9d8d31b17b61d6 |