python-django-downloadview
Port variant py37
Summary Serve files with Django and reverse-proxies (PY37)
Package version 2.1.1
Homepage https://django-downloadview.readthedocs.io/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants py38
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 20 APR 2020, 15:00:59 UTC
Port created 02 FEB 2018, 15:29:04 UTC
Subpackage Descriptions
single ################### django-downloadview ################### `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/benoitbryon/django-downloadview * Bugtracker: https://github.com/benoitbryon/django-downloadview/issues * Continuous integration: https://travis-ci.org/benoitbryon/django-downloadview * Roadmap: https://github.com/benoitbryon/django-downloadview/milestones .. _`Django`: https://djangoproject.com
Configuration Switches (platform-specific settings discarded)
PY37 ON Build using Python 3.7 PY38 OFF Build using Python 3.8
Package Dependencies by Type
Build and Runtime python-Django:single:py37
python-requests:single:py37
python-setuptools:single:py37
python37:single:standard
Download groups
main mirror://PYPI/d/django-downloadview
Distribution File Information
ff6bc2d7ea4df8b602f5b29b920e40cadd7400851c85cb67c7152b48dcb33a8b 27414 django-downloadview-2.1.1.tar.gz
Ports that require python-django-downloadview:py37
No other ports depend on this one.