Skip to main content
CI Status

Usage

  • Install the module using pip install django-curtains

  • Add one of the included middleware to MIDDLEWARE

curtains.middleware.only_staff

Only allows access to authenticated staff members. The ONLY_STAFF_EXEMPT setting (defaults to r"^/admin|^/accounts") allows excluding URLs from the middleware.

curtains.middleware.basic_auth

Requires basic authorization to access the site. The BASIC_AUTH_CREDENTIALS setting should be set to a list containing the username and the password for basic authorization, e.g. BASIC_AUTH_CREDENTIALS = ['early', 'birds']. BASIC_AUTH_EXEMPT can be set to a regex of paths to exempt from the authorization requirement.

curtains.middleware.ip_networks_only

Requires a list of networks in the IP_NETWORKS setting. The default is 127.0.0.0/8. The IP_NETWORKS_EXEMPT setting exists.

Metadata

Release files for django-curtains 0.7.0

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-curtains 0.7.0
File Size Uploaded Provenance Actions
django_curtains-0.7.0.tar.gz 4.5 kB Without provenance Details for django_curtains-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-curtains 0.7.0
File Interpreter ABI Platform Actions
django_curtains-0.7.0-py3-none-any.whl Python 3 none any Details for django_curtains-0.7.0-py3-none-any.whl

Total release size: 10.1 kB

Release files / django_curtains-0.7.0.tar.gz

Download URL django_curtains-0.7.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
faf81d3b7d6dcc7d05d1a8d50dde573da060a7040654857f88fdb0970638f8ae
BLAKE2b-256 checksum
How to use checksums
60906121a348e28cd135f24aa2fbbda5b32ce4c304db04756defcbba1347a99f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Release files / django_curtains-0.7.0-py3-none-any.whl

Download URL django_curtains-0.7.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28c00ded220c26b051220c78861703944281f1445dad2d81155269e6b1bb1976
BLAKE2b-256 checksum
How to use checksums
604797b5311a8e7b6b2e032bd45dc0ed12c33860562cae0b5c9e3630c1b9b8ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Security for django-curtains 0.7.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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