Added result limiting, and result paging

This commit is contained in:
Mike Young
2019-11-29 17:26:18 -05:00
parent 2bf6500ee5
commit 85e6705af6
5 changed files with 20 additions and 44 deletions

View File

@@ -23,7 +23,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = "@(9b9jslgg41u1u=mr)-2*-n2x0vef0zsy39*z@sz18&tvow18"
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = True
ALLOWED_HOSTS = ["*"]

View File

@@ -22,8 +22,8 @@ urlpatterns = [
path("admin/", admin.site.urls),
path("", views.index, name="index"),
path("download/<pk>", views.download, name="download"),
path("prev_page", views.prev_page, name="prev_page"),
path("next_page", views.next_page, name="next_page"),
path("prev_page/<bookset>", views.prev_page, name="prev_page"),
path("next_page/<bookset>", views.next_page, name="next_page"),
]
if settings.DEBUG:
import debug_toolbar