Служебное -- страница для тестирования верстки текста в блоге
This commit is contained in:
14
oknardia/web/service.py
Normal file
14
oknardia/web/service.py
Normal 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)})
|
||||
Reference in New Issue
Block a user