buttons for importBooks, and logout.

This commit is contained in:
Raelon Masters
2020-08-04 13:18:44 -04:00
parent ffb649747c
commit 30f60e4ec3
2 changed files with 39 additions and 6 deletions

View File

@@ -402,6 +402,8 @@ def live(request, **kwargs):
html = render_to_string('signup.html', {'form': SignUpForm}, request)
html += render_to_string('login.html', {'form': UserLoginForm}, request)
return JsonResponse({"data": html})
elif hook == "update_books":
print("Update Books")
else: return JsonResponse(err_txt, status=404)
return JsonResponse({"data": "Response sent"}, status=200)