удалил лишние импорты
parent
cdf9bfe072
commit
c2e68881d9
|
@ -1,11 +1,15 @@
|
||||||
import locale
|
import locale
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from flask import (abort, current_app, redirect, render_template, request,
|
from flask import abort, current_app, render_template
|
||||||
url_for)
|
|
||||||
|
|
||||||
from ..dbase.database import (get_all_posts_by_tag, get_page,
|
from ..dbase.database import (
|
||||||
get_paginated_posts, get_post, get_tags)
|
get_all_posts_by_tag,
|
||||||
|
get_page,
|
||||||
|
get_paginated_posts,
|
||||||
|
get_post,
|
||||||
|
get_tags,
|
||||||
|
)
|
||||||
from .blog import bp
|
from .blog import bp
|
||||||
|
|
||||||
locale.setlocale(locale.LC_ALL, ("ru", "utf-8"))
|
locale.setlocale(locale.LC_ALL, ("ru", "utf-8"))
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import datetime
|
|
||||||
|
|
||||||
from flask_security.models import fsqla
|
from flask_security.models import fsqla
|
||||||
from sqlalchemy import Boolean, Column, DateTime, Integer, String, Text
|
from sqlalchemy import Boolean, Column, DateTime, Integer, String, Text
|
||||||
from sqlalchemy.sql import func
|
from sqlalchemy.sql import func
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
from flask import make_response, render_template
|
from flask import make_response, render_template
|
||||||
from sqlalchemy.sql import func
|
|
||||||
|
|
||||||
from pyproger.dbase.database import get_posts_for_sitemap
|
from pyproger.dbase.database import get_posts_for_sitemap
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{% extends 'admin/model/edit.html' %}
|
{% extends 'admin/model/edit.html' %}
|
||||||
|
|
||||||
{% block head %}
|
{% block head %}
|
||||||
{{ super()}}
|
{{ super()}}
|
||||||
{{ ckeditor.load_code_theme() }}
|
{{ ckeditor.load_code_theme() }}
|
||||||
{%endblock%}
|
{% endblock head %}
|
||||||
|
|
||||||
{% block tail %}
|
{% block tail %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
|
@ -11,4 +11,4 @@
|
||||||
{{ ckeditor.config(name='title')}}
|
{{ ckeditor.config(name='title')}}
|
||||||
{{ ckeditor.config(name='description')}}
|
{{ ckeditor.config(name='description')}}
|
||||||
{{ ckeditor.config(name='text', height=700)}}
|
{{ ckeditor.config(name='text', height=700)}}
|
||||||
{% endblock %}
|
{% endblock tail %}
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import os
|
|
||||||
|
|
||||||
from flask import Blueprint, current_app, request
|
from flask import Blueprint, current_app, request
|
||||||
from flask_babel import Babel
|
from flask_babel import Babel
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue