Skip to main content

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 %}``

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-readonly-0.1.0.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file django-readonly-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django-readonly-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6d01687148359b8b635400ebf211ec5103dedb63dfbc7ca44201e51e47b75fbf
MD5 9b981388f24afef949df597ee3a1c0b6
BLAKE2b-256 7ca6717be6c989baa176ec7867720cddd334895ccd4197012d8e8cf776059612

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