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
...
]
Release files for django-maintain 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-maintain-1.0.0.tar.gz | 1.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_maintain-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 4.1 kB
Release files / django-maintain-1.0.0.tar.gz
| Download URL | django-maintain-1.0.0.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8d6b5a32727f28e7e919ca5bfc94f4b3dbcb1c3ebbd5b32501709fbf2682ce0
|
|
BLAKE2b-256 checksum How to use checksums |
cfbcb0b071580cc56dcd1bded40c07e1a67f1d15a23540c2292d468f15beef55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_maintain-1.0.0-py2.py3-none-any.whl
| Download URL | django_maintain-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b0a07dae2745f7aea2301f6b10bccad434450a2ca2932f8c925c901b68dc25ad
|
|
BLAKE2b-256 checksum How to use checksums |
676713ca3d5fabdeff7b97323dc5abea085339898b8132f01a9d8d31b17b61d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |