Serve files with Django.
Find a file
2012-12-04 11:47:37 +01:00
demo Reviewed documentation. Preparing first public release. 2012-12-04 11:47:37 +01:00
django_downloadview Reviewed documentation. Preparing first public release. 2012-12-04 11:47:37 +01:00
docs Reviewed documentation. Preparing first public release. 2012-12-04 11:47:37 +01:00
.gitignore Introduced project's placeholders. Work in progress. 2012-08-27 12:00:17 +02:00
AUTHORS Reviewed documentation. Preparing first public release. 2012-12-04 11:47:37 +01:00
buildout.cfg Reviewed documentation. Preparing first public release. 2012-12-04 11:47:37 +01:00
CHANGELOG Reviewed documentation. Preparing first public release. 2012-12-04 11:47:37 +01:00
INSTALL Reviewed documentation. Preparing first public release. 2012-12-04 11:47:37 +01:00
LICENSE Introduced project's placeholders. Work in progress. 2012-08-27 12:00:17 +02:00
Makefile Reviewed documentation. Preparing first public release. 2012-12-04 11:47:37 +01:00
MANIFEST.in Reviewed documentation. Preparing first public release. 2012-12-04 11:47:37 +01:00
README Reviewed documentation. Preparing first public release. 2012-12-04 11:47:37 +01:00
setup.py Reviewed documentation. Preparing first public release. 2012-12-04 11:47:37 +01:00
VERSION Reviewed documentation. Preparing first public release. 2012-12-04 11:47:37 +01:00

###################
Django-DownloadView
###################

Django-DownloadView provides (class-based) generic download views for Django.

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.


   # ObjectDownloadView inherits from django.views.generic.BaseDetailView.
   download = ObjectDownloadView.as_view(model=Document, file_field='file')

   url_patterns = ('',
       url('^download/(?P<slug>[A-Za-z0-9_-]+)/$', 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