回答編集履歴

1

誤字の編集

2019/04/07 21:28

投稿

chapin
chapin

スコア80

test CHANGED
@@ -59,3 +59,23 @@
59
59
  ]
60
60
 
61
61
  ```
62
+
63
+
64
+
65
+ hoge.htmlの編集
66
+
67
+ ```html
68
+
69
+ <a href="{% url 'hello:index' %}">HOGE</a>
70
+
71
+ ```
72
+
73
+
74
+
75
+ こんな感じで書いてみてください。
76
+
77
+ 今回はurlpatternsの中に書くべきものをpathだけにすること。
78
+
79
+ 親urls.pyの場合はincludeを使いnamespaceは子urls.pyにてapp_nameを使い定義する。
80
+
81
+ これがポイントだと思います。