django-underconstruction shows an under construction page
Project description
🛠️ Django Under Construction
Put your Django website "under construction" with a single setting.
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
Built Distribution
Close
Hashes for django-underconstruction-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b8922f06e41975df2506b6d57c97e400ab4c49526d6f65698a57a42e60e4fc7 |
|
MD5 | eb731684ddaed22a49c08335c4fe3f1d |
|
BLAKE2b-256 | 958811bf3bef6639a504abdff3214347a39705d2697da44ca725bea1d0cfdab2 |
Close
Hashes for django_underconstruction-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6d98456b5716cfe1c349e71b35c35f218abf1956ab730bf2958273e099e2c31 |
|
MD5 | e1c65abe9e18bddec9cfe8b5b916dbe3 |
|
BLAKE2b-256 | 3c129d85b4b6c2063a59581ee7d3c3260f132126a2e5ebcb0df0e9ca0e62ea1d |