| 1 |
<html> |
| 2 |
<head> |
| 3 |
<title>django-downloadview demo</title> |
| 4 |
</head> |
| 5 |
<body> |
| 6 |
<h1>Welcome to django-downloadview demo!</h1> |
| 7 |
<p>Here are some demo links. Browse the code to see how they are implemented</p> |
| 8 |
|
| 9 |
<h2>Serving files with Django</h2> |
| 10 |
<p>In the following views, Django streams the files, no optimization |
| 11 |
has been setup.</p> |
| 12 |
<ul> |
| 13 |
<li> |
| 14 |
<a href="{% url 'object:default_file' 'hello-world' %}">object:default_file</a> |
| 15 |
</li> |
| 16 |
</ul> |
| 17 |
|
| 18 |
<h2>Optimized downloads</h2> |
| 19 |
<p>In the following views, Django delegates actual streaming to another |
| 20 |
server, for improved performances.</p> |
| 21 |
<p>Since nginx and other servers aren't installed on the demo, you |
| 22 |
will get raw "X-Sendfile" responses. Look at the headers!</p> |
| 23 |
<ul> |
| 24 |
</ul> |
| 25 |
</body> |
| 26 |
</html> |