mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Start on download system
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user