mordor/users/views.py
2021-05-17 20:50:02 +02:00

15 lines
350 B
Python

from pprint import pprint
from django.contrib.auth import logout
from django.http import HttpResponseRedirect
from django.shortcuts import render, redirect
from django.urls import reverse
from users.forms import UserMetaForm
from users.models import CustomUser
def logout_view(request):
logout(request)
return redirect(reverse("index"))