質問編集履歴
1
ソースコード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,13 +28,34 @@
|
|
28
28
|
### 該当のソースコード
|
29
29
|
|
30
30
|
```Python(main.py)
|
31
|
+
from flaskr import app
|
32
|
+
from flask import render_template
|
33
|
+
|
31
|
-
|
34
|
+
@app.route('/')
|
35
|
+
def index():
|
36
|
+
return render_template(
|
37
|
+
'index.html'
|
38
|
+
)
|
32
39
|
```
|
33
40
|
```Python(__init__.py)
|
34
|
-
|
41
|
+
from flask import Flask
|
42
|
+
app= Flask(__name__)
|
43
|
+
import flaskr.main
|
35
44
|
```
|
45
|
+
|
36
46
|
```html(index.html)
|
47
|
+
<!DOCTYPE html>
|
48
|
+
<html lang="ja">
|
49
|
+
<head>
|
37
|
-
|
50
|
+
<meta charset="UTF-8">
|
51
|
+
<title>アプリ</title>
|
52
|
+
</head>
|
53
|
+
<body>
|
54
|
+
<h1>書店</h1>
|
55
|
+
<h2>新刊一覧</h2>
|
56
|
+
<p>まだありません</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
38
59
|
```
|
39
60
|
### 試したこと
|
40
61
|
|