We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e451777 commit 8fa91a0Copy full SHA for 8fa91a0
api/wsgi.py
@@ -12,19 +12,19 @@
12
13
14
if os.environ["FLASK_ENV"] == "development":
15
- app_config = config.DevConfig
+ AppConfig = config.DevConfig
16
elif os.environ["FLASK_ENV"] == "production":
17
- app_config = config.ProdConfig
+ AppConfig = config.ProdConfig
18
19
-app = create_app(app_config)
+app = create_app(AppConfig)
20
21
logging.basicConfig(
22
- filename=app_config.LOGFILE,
+ filename=AppConfig.LOGFILE,
23
filemode="a",
24
format="%(asctime)s %(name)s %(levelname)-2s %(message)s",
25
level=logging.INFO,
26
datefmt="%Y-%m-%d %H:%M:%S"
27
)
28
29
if __name__ == "__main__":
30
- app.run()
+ app.run()
0 commit comments