Added a dummy "TODO" view to the Mia core application.

This commit is contained in:
依瑪貓 2020-07-09 23:18:37 +08:00
parent e59d8738fa
commit a7ec80f066

View File

@ -20,6 +20,7 @@
""" """
from django.contrib.auth import logout as logout_user from django.contrib.auth import logout as logout_user
from django.http import HttpResponse
from django.shortcuts import redirect, render from django.shortcuts import redirect, render
from django.views.decorators.http import require_POST, require_GET from django.views.decorators.http import require_POST, require_GET
@ -52,3 +53,13 @@ def logout(request):
request.session["logout"] = True request.session["logout"] = True
return redirect(request.POST["next"]) return redirect(request.POST["next"])
return redirect("/") 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.")