forked from jazzband/django-downloadview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.html
27 lines (27 loc) · 1.07 KB
/
home.html
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
{% load url from future %}
<html>
<head>
<title>django-downloadview demo</title>
</head>
<body>
<h1>Welcome to django-downloadview demo!</h1>
<p>Here are some demo links. Browse the code to see how they are implemented</p>
<ul>
<li><a href="{% url 'hello_world' %}">
Direct download to one file using PathDownloadView.
</a></li>
<li><a href="{% url 'fixture_from_path' 'hello-world.txt' %}">
Download files using PathDownloadView and relative path in URL.
</a></li>
<li><a href="{% url 'fixture_from_storage' 'hello-world.txt' %}">
Download files using StorageDownloadView and path in URL.
</a></li>
<li><a href="{% url 'document' 'hello-world' %}">
ObjectDownloadView
</a></li>
<li><a href="{% url 'download_document_nginx' 'hello-world' %}">
ObjectDownloadView decorated with nginx X-Accel-Redirect
</a> to be served behind Nginx</li>
</ul>
</body>
</html>