Служебное -- страница для тестирования верстки текста в блоге

This commit is contained in:
2023-01-08 18:14:27 +03:00
parent ee1dd31d54
commit c68fa5be07
3 changed files with 154 additions and 2 deletions

14
oknardia/web/service.py Normal file
View File

@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
from django.shortcuts import render, redirect
from django.http import HttpRequest, HttpResponse
import time
def tmp(request: HttpRequest) -> HttpResponse:
""" Страница для тестирования верстки текста в блоге
:param request:
:return:
"""
t_start = time.time()
return render(request, "service/tmp.html", {'TAU': float(time.time()-t_start)})