diff --git a/kallithea/config/middleware.py b/kallithea/config/middleware.py --- a/kallithea/config/middleware.py +++ b/kallithea/config/middleware.py @@ -13,7 +13,7 @@ # along with this program. If not, see . """WSGI middleware initialization for the Kallithea application.""" -import logging +import logging.config from kallithea.config.app_cfg import base_config from kallithea.config.environment import load_environment diff --git a/kallithea/lib/db_manage.py b/kallithea/lib/db_manage.py --- a/kallithea/lib/db_manage.py +++ b/kallithea/lib/db_manage.py @@ -36,7 +36,6 @@ from os.path import dirname import alembic.config import alembic.command -from kallithea.lib.paster_commands.common import ask_ok from kallithea.model.user import UserModel from kallithea.model.base import init_model from kallithea.model.db import User, Permission, Ui, \ @@ -78,6 +77,7 @@ class DbManage(object): force_ask = self.cli_args.get('force_ask') if force_ask is not None: return force_ask + from kallithea.lib.paster_commands.common import ask_ok return ask_ok(msg) def init_db(self, SESSION=None):