From a7ec80f066f0d7291d5fdfe9c3a94ee76036098a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Thu, 9 Jul 2020 23:18:37 +0800 Subject: [PATCH] Added a dummy "TODO" view to the Mia core application. --- mia_core/views.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mia_core/views.py b/mia_core/views.py index f552aee..4635377 100644 --- a/mia_core/views.py +++ b/mia_core/views.py @@ -20,6 +20,7 @@ """ from django.contrib.auth import logout as logout_user +from django.http import HttpResponse from django.shortcuts import redirect, render from django.views.decorators.http import require_POST, require_GET @@ -52,3 +53,13 @@ def logout(request): request.session["logout"] = True return redirect(request.POST["next"]) return redirect("/") + + +def todo(request): + """A dummy placeholder view for the URL settings that are not + implemented yet. + + Returns: + HttpResponse: A dummy response. + """ + return HttpResponse("TODO: To be done.")