Skip to main content

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


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 details)

Uploaded Source

Built Distribution

django_maintain-1.0.0-py2.py3-none-any.whl (2.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-maintain-1.0.0.tar.gz.

File metadata

File hashes

Hashes for django-maintain-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d8d6b5a32727f28e7e919ca5bfc94f4b3dbcb1c3ebbd5b32501709fbf2682ce0
MD5 398bde54746dcd42b02988efb3f9c696
BLAKE2b-256 cfbcb0b071580cc56dcd1bded40c07e1a67f1d15a23540c2292d468f15beef55

See more details on using hashes here.

File details

Details for the file django_maintain-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_maintain-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b0a07dae2745f7aea2301f6b10bccad434450a2ca2932f8c925c901b68dc25ad
MD5 bb142bea805b10a81afdd3af9656878f
BLAKE2b-256 676713ca3d5fabdeff7b97323dc5abea085339898b8132f01a9d8d31b17b61d6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page