skip to navigation
skip to content

Not Logged In

django-readonly 0.1.2

Put website in read-only mode for maintenance.

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 %}
File Type Py Version Uploaded on Size
django-readonly-0.1.2.tar.gz (md5) Source 2013-07-20 2KB
  • Downloads (All Versions):
  • 25 downloads in the last day
  • 70 downloads in the last week
  • 326 downloads in the last month