9 lines
203 B
Python
9 lines
203 B
Python
from django.contrib.auth import logout
|
|
from django.shortcuts import redirect
|
|
from django.urls import reverse
|
|
|
|
|
|
def logout_view(request):
|
|
logout(request)
|
|
|
|
return redirect(reverse("events:index"))
|