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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file django-underconstruction-0.1.2.tar.gz.

File metadata

  • Download URL: django-underconstruction-0.1.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.5

File hashes

Hashes for django-underconstruction-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5ebe528b4ecf46c499647679a94da6f13c06f1355e5e1dadd5c4de6636e296a5
MD5 b9889cbb627974907fc3962a8877eae6
BLAKE2b-256 5b3b7f31bfd7d2133798cd1a6c736715e5986a72eeca136158e0ac822b76dee7

See more details on using hashes here.

File details

Details for the file django_underconstruction-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: django_underconstruction-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.5

File hashes

Hashes for django_underconstruction-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f56f7c68416f962511bb5bd43df488a2a1438905405913f95f7bf7722a5ec136
MD5 735ce7d49056055fe667b56a4afe1376
BLAKE2b-256 4b2f8b13170e431e56d031aca6a2dabe6953cdf23e62e48a52b616bd6b5fbbd5

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