Protected files in django
Project description
** Just re-uploaded package because it wasn't available as "django-private-files" **
=====================
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 - 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.3, Apache, Nginx and Lighttpd. It should work with older versions of
django except for the example project. Cherokee uses the same mechanism as Apache mod_xsendfile and lighttpd, 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/>`_ .
=====================
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 - 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.3, Apache, Nginx and Lighttpd. It should work with older versions of
django except for the example project. Cherokee uses the same mechanism as Apache mod_xsendfile and lighttpd, 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/>`_ .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-private-files-0.1.2-0.1.2.tar.gz
.
File metadata
- Download URL: django-private-files-0.1.2-0.1.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a7da6b07eca6b681703f2519c8f8b821e4a4e85249076942c879cfcae741ecd |
|
MD5 | 062e59c45a6b4a5257dbbc7f594c9b33 |
|
BLAKE2b-256 | 878d88fc26e3b924ffaf1bb075cb80ea4f72aa009060c5051962b62563ba9b55 |