Skip to main content

django-underconstruction shows an under construction page

Project description

🛠️ Django Under Construction

Put your Django website "under construction" with a single setting.

PyPI Build Status

Example screenshot


Install

Install the package from pypi.

$ pip install django-underconstruction

Add django_underconstruction to your INSTALLED_APPS.

# settings.py

INSTALLED_APPS = [
    ...
    'django_underconstruction',
    ...
]

Add the UnderConstructionMiddleware middleware class to your MIDDLEWARE.

# settings.py

MIDDLEWARE = [
    ...
    'django_underconstruction.middleware.UnderConstructionMiddleware',
    ...
]

Once you set settings.UNDER_CONSTRUCTION to True the under construction page is shown.

# settings.py

UNDER_CONSTRUCTION = not DEBUG

Settings

Option Description Default
UNDER_CONSTRUCTION Whether the site is under construction. False
UNDER_CONSTRUCTION_TEMPLATE HTML template to show while under construction. 'django_underconstruction/construction.html'

License

Released under the MIT license.

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-underconstruction-0.1.2.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

django_underconstruction-0.1.2-py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 3

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