IdHub/idhub/views.py
2023-09-28 11:01:14 +02:00

15 lines
315 B
Python

from django.shortcuts import render
from .models import User
from django.shortcuts import redirect, render
def index(request):
return redirect("/user")
def user(request):
uid = request.user
user = User.get(uid)
context = { userdata: user }
return render(request, "polls/user.html", context)