Skip to main content

=====================
django-private-files
=====================


This application provides utilities for controlling access to static files based on
conditions you can specify within your Django application.
It provides a ``PrivatedFileField`` model field and appropriate signals for monitoring access to static content.
The basic goal is that you should be able to specify permissions for each ``PrivateFileField`` instance in
one method (or callable) and leave the rest to django-private-files.
Additionally you should be able to switch server (eg. from nginx to lighttpd) without hassle and remove
this application from your project without changes to your database.


It supports the following methods for limiting access to files:

* Basic - files are served with Python (not recommended for production if you have another choice)
* Nginx (X-Accel-Redirect) - you can specify protected locations within your nginx configuration file
* xsendfile - Apache (with mod_xsendfile), lighttpd and cherokee (not tested yet)


It's currently been tested with Django (1.9, 1.10, 1.11 and 2.0), Apache and Nginx. It should work with older
versions of django. Cherokee and lighttpd use the same mechanism as Apache mod_xsendfile, so
it should work, but it's not been tested or documented.

The full documentation for the project can be found on `Read the Docs <http://django-private-files.rtfd.org/>`_ .

Metadata

Release files for django-private-files 1.0.1

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-private-files 1.0.1
File Size Uploaded Provenance
django-private-files-1.0.1.tar.gz 4.9 kB Without provenance Details

Release files / django-private-files-1.0.1.tar.gz

Download URL django-private-files-1.0.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a56858c2a54ffb5c5fec0b64b849af0339b156f8f4bbc086fc620a133cfc50f9
BLAKE2b-256 checksum
How to use checksums
cc9668b1f7b267cece6dd2bd55252c291de14a43d8f1d2ff072c7caf40dd37f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-private-files 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file No provenance

0.1.2

0.1.1

0.1.0

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