python-django-downloadview
Port variant py38
Summary Serve files with Django and reverse-proxies (PY38)
Package version 2.1.1
Homepage https://django-downloadview.readthedocs.io/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants py39
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 13 DEC 2020, 19:47:07 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)
PY38 ON Build using Python 3.8 PY39 OFF Build using Python 3.9
Package Dependencies by Type
Build (only) python-pip:single:py38
autoselect-python:single:standard
Build and Runtime python38:single:standard
Runtime (only) python-Django:single:py38
python-requests:single:py38
python-setuptools:single:py38
Download groups
main mirror://PYPIWHL/6a/a3/2deb8864be888a10dd4a6405ad8826c60a537b0aadcee7f47232251781c4
Distribution File Information
4efaa10e2fea6b1b78b3fadd5c8887cc735b0934e1210f29794c14ee6a427aa3 35564 django_downloadview-2.1.1-py3-none-any.whl
Ports that require python-django-downloadview:py38
No other ports depend on this one.