mordor/users/views.py

16 lines
350 B
Python
Raw Permalink Normal View History

2021-05-17 20:50:02 +02:00
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"))