django-downloadview/README

36 lines
954 B
Text
Raw Normal View History

###################
Django-DownloadView
###################
Django-DownloadView provides (class-based) generic download views for Django.
.. warning::
This project is experimental. It may be renamed or modified without
notices.
Example, in some urls.py:
.. code-block:: python
from django.conf.urls import url, url_patterns
from django_downloadview import ObjectDownloadView
from demoproject.download.models import Document # A model with a FileField.
download = ObjectDownloadView.as_view(model=Document, file_attribute='file')
url_patterns = ('',
url('^download/file.pdf$', download, name='download'),
)
**********
Ressources
**********
* online documentation: http://django-downloadview.readthedocs.org
* PyPI page: http://pypi.python.org/pypi/django-downloadview
* code repository: https://github.com/benoitbryon/django-downloadview
* bugtracker: https://github.com/benoitbryon/django-downloadview/issues