# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= python-django-downloadview VERSION= 2.3.0 KEYWORDS= python VARIANTS= v11 v12 SDESC[v11]= Serve files with Django and reverse-proxies (3.11) SDESC[v12]= Serve files with Django and reverse-proxies (3.12) HOMEPAGE= https://django-downloadview.readthedocs.io/ CONTACT= Python_Automaton[python@ironwolf.systems] DOWNLOAD_GROUPS= main SITES[main]= PYPIWHL/c0/1a/af5739ee36e1876be1b24e6071ac12d3ed384bef78b106cdd3e671252e49 DISTFILE[1]= django_downloadview-2.3.0-py3-none-any.whl:main DF_INDEX= 1 SPKGS[v11]= single SPKGS[v12]= single OPTIONS_AVAILABLE= PY311 PY312 OPTIONS_STANDARD= none VOPTS[v11]= PY311=ON PY312=OFF VOPTS[v12]= PY311=OFF PY312=ON DISTNAME= django_downloadview-2.3.0.dist-info GENERATED= yes [PY311].RUN_DEPENDS_ON= python-Django:single:v11 python-requests:single:v11 [PY311].USES_ON= python:v11,wheel [PY312].RUN_DEPENDS_ON= python-Django:single:v12 python-requests:single:v12 [PY312].USES_ON= python:v12,wheel [FILE:1613:descriptions/desc.single] ################### django-downloadview ################### :alt: Jazzband :alt: GitHub Actions :alt: Coverage `django-downloadview` makes it easy to serve files with `Django`_: * you manage files with Django (permissions, filters, generation, ...); * files are stored somewhere or generated somehow (local filesystem, remote storage, memory...); * `django-downloadview` helps you stream the files with very little code; * `django-downloadview` helps you improve performances with reverse proxies, via mechanisms such as Nginx's X-Accel or Apache's X-Sendfile. ******* Example ******* Let's serve a file stored in a file field of some model: .. code:: 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[A-Za-z0-9_-]+)/$', download, name='download'), ) ********* Resources ********* * Documentation: https://django-downloadview.readthedocs.io * PyPI page: http://pypi.python.org/pypi/django-downloadview * Code repository: https://github.com/jazzband/django-downloadview * Bugtracker: https://github.com/jazzband/django-downloadview/issues * Continuous integration: https://github.com/jazzband/django-downloadview/actions * Roadmap: https://github.com/jazzband/django-downloadview/milestones .. _`Django`: https://djangoproject.com [FILE:121:distinfo] ad0dd0250f471f2de5d3d5355648ecb8c9f19d13e0a93c13238a111a20828fbb 35973 django_downloadview-2.3.0-py3-none-any.whl