質問編集履歴
1
base.html追加.game.htmlの内容を修正.
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,7 +38,45 @@
|
|
38
38
|
|
39
39
|
### 該当のソースコード
|
40
40
|
|
41
|
+
base.html
|
41
42
|
|
43
|
+
```
|
44
|
+
|
45
|
+
{% load static %}
|
46
|
+
|
47
|
+
<!DOCTYPE html>
|
48
|
+
|
49
|
+
<html lang="ja">
|
50
|
+
|
51
|
+
<head>
|
52
|
+
|
53
|
+
<meta charset="UTF-8" />
|
54
|
+
|
55
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
56
|
+
|
57
|
+
<script type="text/javascript" src="http://code.jquery.com/jquery-3.3.1.min.js" ></script>
|
58
|
+
|
59
|
+
<link rel="icon" href="{% static 'img/favicon.ico' %}" />
|
60
|
+
|
61
|
+
<title>{% block title %} {% endblock title %}</title>
|
62
|
+
|
63
|
+
</head>
|
64
|
+
|
65
|
+
<body>
|
66
|
+
|
67
|
+
{% block contents %} {% endblock contents%}
|
68
|
+
|
69
|
+
</body>
|
70
|
+
|
71
|
+
</html>
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
```
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
game.html
|
42
80
|
|
43
81
|
```html
|
44
82
|
|
@@ -96,9 +134,19 @@
|
|
96
134
|
|
97
135
|
})
|
98
136
|
|
99
|
-
.done( function() {
|
137
|
+
.done( function(data) {
|
100
138
|
|
139
|
+
alert(data);
|
140
|
+
|
141
|
+
console.log(data);
|
142
|
+
|
143
|
+
})
|
144
|
+
|
101
|
-
|
145
|
+
.fail( function(xhr, err) {
|
146
|
+
|
147
|
+
alert(err);
|
148
|
+
|
149
|
+
console.log(err);
|
102
150
|
|
103
151
|
})
|
104
152
|
|
@@ -118,7 +166,7 @@
|
|
118
166
|
|
119
167
|
|
120
168
|
|
121
|
-
|
169
|
+
views.py
|
122
170
|
|
123
171
|
```python
|
124
172
|
|