質問編集履歴
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
xxx.pyをどう修正したら、app.configでconfigファイルで設定している定数の文字列を使うことできるのでしょうか?
|
2
2
|
|
3
|
-
This is init file.
|
4
3
|
|
4
|
+
__init__.py
|
5
5
|
```ここに言語を入力
|
6
6
|
def init_db(app):
|
7
7
|
db.init_app(app)
|
@@ -11,6 +11,8 @@
|
|
11
11
|
def create_app(config_name):
|
12
12
|
app = Flask(__name__)
|
13
13
|
app.config.from_object(config[config_name])
|
14
|
+
|
15
|
+
return app
|
14
16
|
```
|
15
17
|
xxx.py
|
16
18
|
|