Skip to main content

Put website in read-only mode for maintenance.

Project description

Latest PyPI version Number of PyPI downloads

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 for that).


  • pip install django-readonly
  • add 'readonly.middleware.ReadOnlyMiddleware', to MIDDLEWARE_CLASSES
  • 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.2.tar.gz (2.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page