Skip to main content

Django-Readonly

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 https://github.com/streeter/django-db-readonly for that).

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

Metadata

Release files for django-readonly 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-readonly 0.1.2
File Size Uploaded Provenance
django-readonly-0.1.2.tar.gz 2.1 kB Without provenance Details

Release files / django-readonly-0.1.2.tar.gz

Download URL django-readonly-0.1.2.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d10f469b3ce96249679664c5d593a9f77e749509ff644d31ee93c4ec604cb8b8
BLAKE2b-256 checksum
How to use checksums
6b53c8d32f385b10d7f76e5c6b5000388b4d6ba786e11603909f8eccb54dc128
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-readonly 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page