Did I find the right examples for you? yes no

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

src/d/j/django-downloadview-HEAD/demo/demoproject/nginx/views.py   django-downloadview(Download)
 
from django_downloadview import StorageDownloadView
from django_downloadview.nginx import x_accel_redirect
 
 
 
optimized_by_decorator = x_accel_redirect(
    StorageDownloadView.as_view(storage=storage, path='hello-world.txt'),
    source_url=storage.base_url,
    destination_url='/nginx-optimized-by-decorator/')