lincolnloop / django-protected-files
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu May 14 14:27:31 -0700 2009 | |
| |
LICENSE | Fri May 15 08:16:50 -0700 2009 | |
| |
README.rst | Fri May 15 08:19:31 -0700 2009 | |
| |
protected_files/ | Mon Jun 01 15:44:13 -0700 2009 | |
| |
setup.py | Fri May 15 08:16:50 -0700 2009 |
README.rst
Install
- python setup.py install
Usage
- add protected_files to your INSTALLED_APPS
- add an URL to your protected resource to your urls.py (see tests.urls for examples)
- configure your static server
Static Server Configuration
Nginx
Place this in your Nginx configuration:
# this location will only be used by your Django application server
location /protected {
internal;
alias /protected/files/path/;
}
To Do
- Support alternative means of authorization (user, group, is_staff, etc.)
- Support additional static servers (Lighttpd)
