質問編集履歴
1
エラーコードの書き換え
test
CHANGED
File without changes
|
test
CHANGED
@@ -37,6 +37,20 @@
|
|
37
37
|
>python manage.py makemigrations
|
38
38
|
|
39
39
|
出力
|
40
|
+
|
41
|
+
Traceback (most recent call last):
|
42
|
+
|
43
|
+
File "C:\Users(UserName)\AppData\Local\Programs\Python\Python37\lib\site-packages\django\urls\resolvers.py", line 535, in url_patterns
|
44
|
+
|
45
|
+
iter(patterns)
|
46
|
+
|
47
|
+
TypeError: 'module' object is not iterable
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
During handling of the above exception, another exception occurred:
|
52
|
+
|
53
|
+
|
40
54
|
|
41
55
|
Traceback (most recent call last):
|
42
56
|
|
@@ -80,6 +94,14 @@
|
|
80
94
|
|
81
95
|
return check_method()
|
82
96
|
|
97
|
+
File "C:\Users(UserName)\AppData\Local\Programs\Python\Python37\lib\site-packages\django\urls\resolvers.py", line 397, in check
|
98
|
+
|
99
|
+
warnings.extend(check_resolver(pattern))
|
100
|
+
|
101
|
+
File "C:\Users(UserName)\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\checks\urls.py", line 23, in check_resolver
|
102
|
+
|
103
|
+
return check_method()
|
104
|
+
|
83
105
|
File "C:\Users(UserName)\AppData\Local\Programs\Python\Python37\lib\site-packages\django\urls\resolvers.py", line 396, in check
|
84
106
|
|
85
107
|
for pattern in self.url_patterns:
|
@@ -88,53 +110,11 @@
|
|
88
110
|
|
89
111
|
res = instance.__dict__[self.name] = self.func(instance)
|
90
112
|
|
91
|
-
File "C:\Users(UserName)\AppData\Local\Programs\Python\Python37\lib\site-packages\django\urls\resolvers.py", line 5
|
113
|
+
File "C:\Users(UserName)\AppData\Local\Programs\Python\Python37\lib\site-packages\django\urls\resolvers.py", line 542, in url_patterns
|
92
114
|
|
93
|
-
|
115
|
+
raise ImproperlyConfigured(msg.format(name=self.urlconf_name))
|
94
116
|
|
95
|
-
|
96
|
-
|
97
|
-
res = instance.__dict__[self.name] = self.func(instance)
|
98
|
-
|
99
|
-
File "C:\Users(UserName)\AppData\Local\Programs\Python\Python37\lib\site-packages\django\urls\resolvers.py", line 526, in urlconf_module
|
100
|
-
|
101
|
-
return import_module(self.urlconf_name)
|
102
|
-
|
103
|
-
File "C:\Users(UserName)\AppData\Local\Programs\Python\Python37\lib\importlib\__init__.py", line 127, in import_module
|
104
|
-
|
105
|
-
return _bootstrap._gcd_import(name[level:], package, level)
|
106
|
-
|
107
|
-
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
|
108
|
-
|
109
|
-
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
|
110
|
-
|
111
|
-
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
|
112
|
-
|
113
|
-
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
|
114
|
-
|
115
|
-
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
|
116
|
-
|
117
|
-
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
|
118
|
-
|
119
|
-
File "c:\practice\myproject\myproject\urls.py", line 21, in <module>
|
120
|
-
|
121
|
-
path('accounts/',include('accounts.urls')),
|
122
|
-
|
123
|
-
File "C:\Users(UserName)\AppData\Local\Programs\Python\Python37\lib\site-packages\django\urls\conf.py", line 34, in include
|
124
|
-
|
125
|
-
urlconf_module = import_module(urlconf_module)
|
126
|
-
|
127
|
-
File "C:\Users(UserName)\AppData\Local\Programs\Python\Python37\lib\importlib\__init__.py", line 127, in import_module
|
128
|
-
|
129
|
-
return _bootstrap._gcd_import(name[level:], package, level)
|
130
|
-
|
131
|
-
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
|
132
|
-
|
133
|
-
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
|
134
|
-
|
135
|
-
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
|
136
|
-
|
137
|
-
ModuleNotFoundError: No module named 'accounts.urls'
|
117
|
+
django.core.exceptions.ImproperlyConfigured: The included URLconf '<module 'accounts.urls' from 'c:\practice\myproject\accounts\urls.py'>' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import.
|
138
118
|
|
139
119
|
```
|
140
120
|
|
@@ -166,6 +146,8 @@
|
|
166
146
|
|
167
147
|
|
168
148
|
|
149
|
+
|
150
|
+
|
169
151
|
### 補足情報(FW/ツールのバージョンなど)
|
170
152
|
|
171
153
|
Python 3.7.4
|