15 lines
350 B
Python
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"))
|