Start on download system

This commit is contained in:
Mike Young
2019-11-18 12:46:58 -05:00
parent 9cd352c319
commit 765a93a2c8
8 changed files with 26 additions and 10 deletions

View File

@@ -1,4 +1,5 @@
from django.shortcuts import render
from xsendfile import XSendfileApplication
from .models import Books
@@ -7,6 +8,10 @@ def index(request):
return render(request, "index.html", {"Books": Books.objects.all()})
def download(request):
return XSendfileApplication(file_name)
def book_set(_set):
r = 20
x = _set * r