diff --git a/pyproger/blog/urls.py b/pyproger/blog/urls.py index 8b70ae7..cb847b5 100644 --- a/pyproger/blog/urls.py +++ b/pyproger/blog/urls.py @@ -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")) diff --git a/pyproger/dbase/models.py b/pyproger/dbase/models.py index 5130a85..22bc062 100644 --- a/pyproger/dbase/models.py +++ b/pyproger/dbase/models.py @@ -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 diff --git a/pyproger/robots/urls.py b/pyproger/robots/urls.py index 89e8084..28cfd3f 100644 --- a/pyproger/robots/urls.py +++ b/pyproger/robots/urls.py @@ -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 diff --git a/pyproger/templates/admin/edit.html b/pyproger/templates/admin/edit.html index d588766..662a496 100644 --- a/pyproger/templates/admin/edit.html +++ b/pyproger/templates/admin/edit.html @@ -1,9 +1,9 @@ {% extends 'admin/model/edit.html' %} {% block head %} -{{ super()}} -{{ ckeditor.load_code_theme() }} -{%endblock%} + {{ super()}} + {{ ckeditor.load_code_theme() }} +{% 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 %} diff --git a/pyproger/translations/translation.py b/pyproger/translations/translation.py index f9c1baf..60e07e2 100644 --- a/pyproger/translations/translation.py +++ b/pyproger/translations/translation.py @@ -1,5 +1,3 @@ -import os - from flask import Blueprint, current_app, request from flask_babel import Babel