質問編集履歴

1

発生している問題の修正

2019/10/18 09:59

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -8,21 +8,41 @@
8
8
 
9
9
  ### 発生している問題・エラーメッセージ
10
10
 
11
- 公式ドキュメントの「Simple Flashing」をそのままファイルに書いて実行すると以下のエラーがブラウザで表示されました。
11
+ 公式ドキュメントの「Simple Flashing」をそのままファイルに書いて実行すると
12
+
12
-
13
+ ブラウザで何も表示されないという問題が発生しました。
14
+
15
+ Google Chrome バージョン: 77.0.3865.120(Official Build) (64 ビット)です。
16
+
17
+
18
+
19
+ ターミナルも更新しても以下のように表示されるだけで、特にエラーメッセージも出ません。
20
+
13
- ```
21
+ ```
22
+
14
-
23
+ $ FLASK_APP=app.py FLASK_DEBUG=true flask run
24
+
25
+ * Serving Flask app "app.py" (lazy loading)
26
+
27
+ * Environment: production
28
+
29
+ WARNING: This is a development server. Do not use it in a production deployment.
30
+
31
+ Use a production WSGI server instead.
32
+
15
- Internal Server Error
33
+ * Debug mode: on
16
-
17
- The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
34
+
18
-
19
- ```
20
-
21
- ターミナルのエラー文は以下です
22
-
23
- ```
24
-
25
- jinja2.exceptions.TemplateNotFound: index.html
35
+ * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
36
+
37
+ * Restarting with stat
38
+
39
+ * Debugger is active!
40
+
41
+ * Debugger PIN: 232-439-885
42
+
43
+ 127.0.0.1 - - [18/Oct/2019 18:56:47] "GET / HTTP/1.1" 200 -
44
+
45
+ 127.0.0.1 - - [18/Oct/2019 18:56:53] "GET / HTTP/1.1" 200 -
26
46
 
27
47
  ```
28
48
 
@@ -88,7 +108,7 @@
88
108
 
89
109
 
90
110
 
91
- 以下のhtmlファイルは、app.pyと同じ階層のtemplateというフォルダにまとめて入れています。
111
+ 以下のhtmlファイルは、app.pyと同じ階層のtemplatesというフォルダにまとめて入れています。
92
112
 
93
113
  layout.html
94
114