del: служебный интерфейс удалён из проекта

This commit is contained in:
2026-05-14 21:12:14 +03:00
parent ce63d7d42b
commit 12ba0fe92d
5 changed files with 7 additions and 203 deletions

View File

@@ -1,34 +1,6 @@
# -*- coding: utf-8 -*-
from django.shortcuts import render, redirect
from django.shortcuts import render
from django.http import HttpRequest, HttpResponse
from oknardia.models import PVCprofiles, Seria_Info, Win_MountDim, Building_Info, SetKit
from datetime import datetime, timezone
import django.utils.dateformat
import django.utils.timezone
from oknardia.settings import *
import time
# Главная страница для вызова служебных процедур.
def service(request: HttpRequest) -> HttpResponse:
""" Страница для вызова служебных процедур
:param request: HttpRequest
:return: HttpResponse
"""
time_start = time.perf_counter()
# проверка на аутентификацию
# print(request.user.is_authenticated)
if not request.user.is_authenticated:
return redirect("/service/not-denice")
return render(request, "service/index.html", {'ticks': float(time.perf_counter()-time_start)})
# страничка, на которую переадресует служебный интерфейс, если нет аутентификации.
def not_denice(request):
time_start = time.perf_counter()
return render(request, "service/not_denice.html", {'ticks': float(time.perf_counter()-time_start)})
def tmp(request: HttpRequest) -> HttpResponse:
""" Страница для тестирования верстки текста в блоге
@@ -36,5 +8,4 @@ def tmp(request: HttpRequest) -> HttpResponse:
:param request:
:return:
"""
t_start = time.perf_counter()
return render(request, "service/tmp.html", {'TAU': float(time.perf_counter()-t_start)})
return render(request, "service/tmp.html")