File: PKG-INFO

package info (click to toggle)
django-downloadview 1.9-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 304 kB
  • sloc: python: 1,140; makefile: 4
file content (68 lines) | stat: -rw-r--r-- 2,688 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Metadata-Version: 1.1
Name: django-downloadview
Version: 1.9
Summary: Serve files with Django and reverse-proxies.
Home-page: https://django-downloadview.readthedocs.org/
Author: BenoƮt Bryon
Author-email: benoit@marmelune.net
License: BSD
Description: ###################
        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<slug>[A-Za-z0-9_-]+)/$', download, name='download'),
           )
        
        
        *********
        Resources
        *********
        
        * 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
        * Continuous integration: https://travis-ci.org/benoitbryon/django-downloadview
        * Roadmap: https://github.com/benoitbryon/django-downloadview/milestones
        
        
        .. _`Django`: https://djangoproject.com
        
Keywords: file stream download FileField ImageField x-accel x-accel-redirect x-sendfile sendfile mod_xsendfile offload
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Django
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5