Подводка к MVC + исправление кодировки (в основном приложении и запросах)

This commit is contained in:
2024-12-04 12:14:14 +03:00
parent 0b6af28ff3
commit 8caa72d2fd
4 changed files with 19 additions and 20 deletions

View File

@@ -9,9 +9,9 @@ app = Flask(__name__)
app.secret_key = 'suplex'
app.config.update(
db_config=json.load(open(os.path.join(os.path.dirname(__file__), 'data/config.json'))),
db_access=json.load(open(os.path.join(os.path.dirname(__file__), 'data/db_access.json'))),
cache_config=json.load(open(os.path.join(os.path.dirname(__file__), 'data/redis_config.json')))
db_config=json.load(open(os.path.join(os.path.dirname(__file__), 'data/config.json'), encoding='utf-8')),
db_access=json.load(open(os.path.join(os.path.dirname(__file__), 'data/db_access.json'), encoding='utf-8')),
cache_config=json.load(open(os.path.join(os.path.dirname(__file__), 'data/redis_config.json'), encoding='utf-8'))
)
app.register_blueprint(requests_bp, url_prefix='/requests')