Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/d/j/django-downloadview-1.6/django_downloadview/nginx/response.py   django-downloadview(Download)
from django_downloadview.response import (ProxiedDownloadResponse,
                                          content_disposition)
from django_downloadview.utils import content_type_to_charset, url_basename
 
 
        super(XAccelRedirectResponse, self).__init__(content_type=content_type)
        if attachment:
            self.basename = basename or url_basename(redirect_url,
                                                     content_type)
            self['Content-Disposition'] = content_disposition(self.basename)

src/d/j/django-downloadview-HEAD/django_downloadview/nginx/response.py   django-downloadview(Download)
from django_downloadview.response import (ProxiedDownloadResponse,
                                          content_disposition)
from django_downloadview.utils import content_type_to_charset, url_basename
 
 
        super(XAccelRedirectResponse, self).__init__(content_type=content_type)
        if attachment:
            self.basename = basename or url_basename(redirect_url,
                                                     content_type)
            self['Content-Disposition'] = content_disposition(self.basename)