質問編集履歴
1
ご質問を受けて追加検証した内容を追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -62,4 +62,38 @@
|
|
62
62
|
|
63
63
|
|
64
64
|
|
65
|
+
|
66
|
+
|
67
|
+
なお、ご質問いただきましてが、cf-products/(?の/を除いて、
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
re_path(r'^recommends/cf-products(?P<userId>\d+)/$',
|
72
|
+
|
73
|
+
views.RecommendSelectAPIView.as_view())
|
74
|
+
|
75
|
+
```
|
76
|
+
|
77
|
+
/api/recommends/cf-products?userId=1
|
78
|
+
|
79
|
+
でアクセスしたところ、同様に下記のエラーとなりました。
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
Using the URLconf defined in config.urls, Django tried these URL patterns, in this order:
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
api/ ^recommends/cf-products(?P<userId>\d+)/$
|
88
|
+
|
89
|
+
The current path, api/recommends/cf-products, didn't match any of these.
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
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.
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
65
99
|
よろしくお願いいたします。
|