Miroca_Server

This commit is contained in:
Victor Alexandrovich Tsyrenschikov
2026-01-02 00:07:37 +05:00
parent 7ab28ed366
commit c9ae31bc3d
100 changed files with 3108 additions and 0 deletions

9
upanel/logout.py Normal file
View File

@@ -0,0 +1,9 @@
from django.shortcuts import render, redirect
def logout_view(func):
def wrapper(request):
if request.method == 'POST':
request.session.clear()
return redirect ('login')
return func(request)
return wrapper