Put website in read-only mode for maintenance.
Project description
Django-Readonly
=============
Put your website into read-only mode for maintanance. It blocks any POST requests and signs users out.
It doesn't lock any database transactions (check out https://github.com/streeter/django-db-readonly for that).
* http://pypi.python.org/pypi/django-readonly/
* https://bitbucket.org/zalew/django-readonly/
Usage
-----
* ``pip install django-readonly``
* settings.py: add ``'readonly.middleware.ReadOnlyMiddleware',`` to ``MIDDLEWARE_CLASSES``
* settings.py: READ_ONLY = True
* template: ``{% if request.read_only %}<p>Website is currently in read-only mode.</p>{% endif %}``
=============
Put your website into read-only mode for maintanance. It blocks any POST requests and signs users out.
It doesn't lock any database transactions (check out https://github.com/streeter/django-db-readonly for that).
* http://pypi.python.org/pypi/django-readonly/
* https://bitbucket.org/zalew/django-readonly/
Usage
-----
* ``pip install django-readonly``
* settings.py: add ``'readonly.middleware.ReadOnlyMiddleware',`` to ``MIDDLEWARE_CLASSES``
* settings.py: READ_ONLY = True
* template: ``{% if request.read_only %}<p>Website is currently in read-only mode.</p>{% endif %}``
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-readonly-0.1.1.tar.gz
(1.9 kB
view details)
File details
Details for the file django-readonly-0.1.1.tar.gz
.
File metadata
- Download URL: django-readonly-0.1.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84a2fd5a3f270ca7f201f901f9b12ea285e12363db7a67eb091976a9a486ca93 |
|
MD5 | 1e753016192bab101501e82ad0a83db4 |
|
BLAKE2b-256 | e4f7680b9b4c58b28b97b64c0be3e9c0d1d66ad10a88cd447b9a2ce948ae4520 |