質問編集履歴

2

追加

2019/07/07 05:30

投稿

bane
bane

スコア14

test CHANGED
File without changes
test CHANGED
@@ -7,6 +7,10 @@
7
7
  ちなみにhttp://127.0.0.1:8000/room/だとroom.htmlが開けます。
8
8
 
9
9
  参考にさせて頂いたサイトhttps://luck2515dev.hatenablog.com/entry/2018/12/18/001100
10
+
11
+ 追加
12
+
13
+   http://127.0.0.1/chat任意の文字列だとroomに行けることがわかりましたがスラッシュがあると行けない理由がわかりません。
10
14
 
11
15
 
12
16
 

1

views.pyの更新

2019/07/07 05:30

投稿

bane
bane

スコア14

test CHANGED
File without changes
test CHANGED
@@ -33,6 +33,12 @@
33
33
  from django.utils.safestring import mark_safe
34
34
 
35
35
  import json
36
+
37
+
38
+
39
+ def chat(request):
40
+
41
+ return render(request, 'chat/chat.html')
36
42
 
37
43
 
38
44