Commit 29acd336 authored by 崔为之's avatar 崔为之 💪🏽

Update project

parent 3fece453
...@@ -7,25 +7,27 @@ ...@@ -7,25 +7,27 @@
# @Email : StudentCWZ@outlook.com # @Email : StudentCWZ@outlook.com
# @Date : 2023/10/28 12:53 # @Date : 2023/10/28 12:53
# @File : init_config.py # @File : init_config.py
# @Description : flask-dynaconf extension # @Description : Initializes the FlaskDynaconf extension for a Flask application.
""" """
from flask import Flask from flask import Flask
from dynaconf import FlaskDynaconf from dynaconf import FlaskDynaconf
def init_config(app: Flask) -> None: def init_config(app: Flask) -> None:
""" """
Initialize the dynaconf extension Initializes the FlaskDynaconf extension for a Flask application.
Args:
app (Flask): The Flask application.
:param app: flask.Flask application instance Returns:
:return: None None
""" """
FlaskDynaconf( FlaskDynaconf(
app=app, app=app,
loaders=[ loaders=[
"application.utils.loaders.consul_loader", 'application.utils.loaders.consul_loader',
"application.utils.loaders.yaml_loader", 'application.utils.loaders.yaml_loader',
], ],
) )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment