Added the home page view.
This commit is contained in:
parent
66f1e4b4fa
commit
cd7d7a5106
@ -1,6 +1,19 @@
|
||||
from django.contrib.auth import logout as logout_user
|
||||
from django.shortcuts import redirect
|
||||
from django.views.decorators.http import require_POST
|
||||
from django.shortcuts import redirect, render
|
||||
from django.views.decorators.http import require_POST, require_GET
|
||||
|
||||
|
||||
@require_GET
|
||||
def home(request):
|
||||
"""The view of the home page.
|
||||
|
||||
Args:
|
||||
request (HttpRequest): The request.
|
||||
|
||||
Returns:
|
||||
HttpRedirectResponse: The redirect response.
|
||||
"""
|
||||
return render(request, "index.html")
|
||||
|
||||
|
||||
@require_POST
|
||||
|
Loading…
Reference in New Issue
Block a user