mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-06-02 07:42:51 +02:00
10 lines
318 B
Python
10 lines
318 B
Python
from django.core.handlers.wsgi import WSGIRequest
|
|
from django.http import HttpResponse
|
|
from django.shortcuts import redirect, render
|
|
|
|
|
|
def hello_world(request: WSGIRequest) -> HttpResponse:
|
|
if request.user.is_authenticated:
|
|
return redirect("character:list")
|
|
return render(request, "common/hello.html")
|