Skip to content

Show an "under construction" page when your Django site is.. under construction

License

Notifications You must be signed in to change notification settings

koenwoortman/django-underconstruction

Repository files navigation

🛠️ 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.

About

Show an "under construction" page when your Django site is.. under construction

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published