質問編集履歴

1

文法の修正

2020/10/11 23:23

投稿

3r3ginn
3r3ginn

スコア0

test CHANGED
@@ -1 +1 @@
1
- Using the URLconf defined in config.urls, Django tried these URL patterns, in this order:
1
+ 何故エラーかわかりませんUsing the URLconf defined in config.urls, Django tried these URL patterns, in this order
test CHANGED
@@ -55,3 +55,23 @@
55
55
  if settings.DEBUG = False
56
56
 
57
57
  urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
58
+
59
+
60
+
61
+ と書いて runserverをすると
62
+
63
+ Using the URLconf defined in config.urls, Django tried these URL patterns, in this order:
64
+
65
+ account/
66
+
67
+ admin/
68
+
69
+ ^media/(?P<path>.*)$
70
+
71
+ The empty path didn't match any of these.
72
+
73
+ You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
74
+
75
+ とエラーが出ます。
76
+
77
+ どうすればいいですか?