Подводка к MVC + исправление кодировки (в основном приложении и запросах)
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user