удалил лишние импорты

main
Сергей Ванюшкин 2023-10-25 08:54:57 +03:00
parent cdf9bfe072
commit c2e68881d9
5 changed files with 12 additions and 13 deletions

View File

@ -1,11 +1,15 @@
import locale
import re
from flask import (abort, current_app, redirect, render_template, request,
url_for)
from flask import abort, current_app, render_template
from ..dbase.database import (get_all_posts_by_tag, get_page,
get_paginated_posts, get_post, get_tags)
from ..dbase.database import (
get_all_posts_by_tag,
get_page,
get_paginated_posts,
get_post,
get_tags,
)
from .blog import bp
locale.setlocale(locale.LC_ALL, ("ru", "utf-8"))

View File

@ -1,5 +1,3 @@
import datetime
from flask_security.models import fsqla
from sqlalchemy import Boolean, Column, DateTime, Integer, String, Text
from sqlalchemy.sql import func

View File

@ -1,5 +1,4 @@
from flask import make_response, render_template
from sqlalchemy.sql import func
from pyproger.dbase.database import get_posts_for_sitemap

View File

@ -3,7 +3,7 @@
{% block head %}
{{ super()}}
{{ ckeditor.load_code_theme() }}
{%endblock%}
{% endblock head %}
{% block tail %}
{{ super() }}
@ -11,4 +11,4 @@
{{ ckeditor.config(name='title')}}
{{ ckeditor.config(name='description')}}
{{ ckeditor.config(name='text', height=700)}}
{% endblock %}
{% endblock tail %}

View File

@ -1,5 +1,3 @@
import os
from flask import Blueprint, current_app, request
from flask_babel import Babel