質問編集履歴
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,13 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
TemplateDoesNotExist at /post_create/
|
6
|
+
|
7
|
+
となります。
|
8
|
+
|
9
|
+
|
10
|
+
|
5
|
-
|
11
|
+
記事や資料を見て、試したのですが、解決できません。
|
6
12
|
|
7
13
|
|
8
14
|
|
@@ -10,60 +16,68 @@
|
|
10
16
|
|
11
17
|
```Python
|
12
18
|
|
19
|
+
TemplateDoesNotExist at /post_create/
|
20
|
+
|
21
|
+
post_create
|
22
|
+
|
13
|
-
|
23
|
+
Request Method: GET
|
24
|
+
|
25
|
+
Request URL: http://127.0.0.1:8000/post_create/
|
26
|
+
|
27
|
+
Django Version: 3.0.4
|
28
|
+
|
29
|
+
Exception Type: TemplateDoesNotExist
|
30
|
+
|
31
|
+
Exception Value:
|
32
|
+
|
33
|
+
post_create
|
34
|
+
|
35
|
+
Exception Location: C:\Users\yasut\AppData\Local\Programs\Python\Python37\lib\site-packages\django\template\loader.py in select_template, line 47
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
Exception Value:
|
14
40
|
|
15
41
|
Reverse for 'post_create' not found. 'post_create' is not a valid view function or pattern name.
|
16
42
|
|
17
|
-
|
43
|
+
Exception Location: C:\Users****\AppData\Local\Programs\Python\Python37\lib\site-packages\django\urls\resolvers.py in _reverse_with_prefix, line 677
|
18
|
-
|
44
|
+
|
19
|
-
|
45
|
+
Python Executable: C:\Users****\AppData\Local\Programs\Python\Python37\python.exe
|
20
|
-
|
46
|
+
|
21
|
-
|
47
|
+
Python Version: 3.7.4
|
22
|
-
|
23
|
-
|
48
|
+
|
24
|
-
|
25
|
-
|
49
|
+
Python Path:
|
50
|
+
|
51
|
+
['C:\twitter_site',
|
52
|
+
|
53
|
+
'C:\Users\****\AppData\Local\Programs\Python\Python37\python37.zip',
|
54
|
+
|
55
|
+
'C:\Users\****\AppData\Local\Programs\Python\Python37\DLLs',
|
56
|
+
|
57
|
+
'C:\Users\****\AppData\Local\Programs\Python\Python37\lib',
|
58
|
+
|
59
|
+
'C:\Users\****\AppData\Local\Programs\Python\Python37',
|
60
|
+
|
61
|
+
'C:\Users\****\AppData\Roaming\Python\Python37\site-packages',
|
62
|
+
|
63
|
+
'C:\Users\****\AppData\Local\Programs\Python\Python37\lib\site-packages',
|
64
|
+
|
65
|
+
'C:\Users\****\AppData\Local\Programs\Python\Python37\lib\site-packages\win32',
|
66
|
+
|
67
|
+
'C:\Users\****\AppData\Local\Programs\Python\Python37\lib\site-packages\win32\lib',
|
68
|
+
|
69
|
+
'C:\Users\****\AppData\Local\Programs\Python\Python37\lib\site-packages\Pythonwin']
|
70
|
+
|
71
|
+
Server time: 水, 1 12月 2021 22:38:41 +0900
|
72
|
+
|
73
|
+
Error during template rendering
|
74
|
+
|
75
|
+
In template C:\twitter_site\app\templates\app\base.html, error at line 21
|
76
|
+
|
77
|
+
|
26
78
|
|
27
79
|
Reverse for 'post_create' not found. 'post_create' is not a valid view function or pattern name.
|
28
80
|
|
29
|
-
Exception Location: C:\Users****\AppData\Local\Programs\Python\Python37\lib\site-packages\django\urls\resolvers.py in _reverse_with_prefix, line 677
|
30
|
-
|
31
|
-
Python Executable: C:\Users****\AppData\Local\Programs\Python\Python37\python.exe
|
32
|
-
|
33
|
-
Python Version: 3.7.4
|
34
|
-
|
35
|
-
Python Path:
|
36
|
-
|
37
|
-
['C:\twitter_site',
|
38
|
-
|
39
|
-
'C:\Users\****\AppData\Local\Programs\Python\Python37\python37.zip',
|
40
|
-
|
41
|
-
'C:\Users\****\AppData\Local\Programs\Python\Python37\DLLs',
|
42
|
-
|
43
|
-
'C:\Users\****\AppData\Local\Programs\Python\Python37\lib',
|
44
|
-
|
45
|
-
'C:\Users\****\AppData\Local\Programs\Python\Python37',
|
46
|
-
|
47
|
-
'C:\Users\****\AppData\Roaming\Python\Python37\site-packages',
|
48
|
-
|
49
|
-
'C:\Users\****\AppData\Local\Programs\Python\Python37\lib\site-packages',
|
50
|
-
|
51
|
-
'C:\Users\****\AppData\Local\Programs\Python\Python37\lib\site-packages\win32',
|
52
|
-
|
53
|
-
'C:\Users\****\AppData\Local\Programs\Python\Python37\lib\site-packages\win32\lib',
|
54
|
-
|
55
|
-
'C:\Users\****\AppData\Local\Programs\Python\Python37\lib\site-packages\Pythonwin']
|
56
|
-
|
57
|
-
Server time: 水, 1 12月 2021 22:38:41 +0900
|
58
|
-
|
59
|
-
Error during template rendering
|
60
|
-
|
61
|
-
In template C:\twitter_site\app\templates\app\base.html, error at line 21
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
Reverse for 'post_create' not found. 'post_create' is not a valid view function or pattern name.
|
66
|
-
|
67
81
|
11 </head>
|
68
82
|
|
69
83
|
12 <body>
|
@@ -144,7 +158,7 @@
|
|
144
158
|
|
145
159
|
|
146
160
|
|
147
|
-
<a href="
|
161
|
+
<a href="post_create" button type="button"style="text-align:center" class="btn btn-outline-primary">Tweet</button>
|
148
162
|
|
149
163
|
|
150
164
|
|