удалил лишние импорты
parent
cdf9bfe072
commit
c2e68881d9
|
@ -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"))
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import os
|
||||
|
||||
from flask import Blueprint, current_app, request
|
||||
from flask_babel import Babel
|
||||
|
||||
|
|
Loading…
Reference in New Issue