質問編集履歴
1
エラーメッセージ・実行内容の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,14 +1,60 @@
|
|
1
1
|
### 前提
|
2
2
|
|
3
3
|
python初学者です。
|
4
|
-
以下のサイト
|
4
|
+
以下のサイトに沿ってpythonでのwebアプリ制作を学習しています。
|
5
5
|
https://note.com/tamurasann/n/nd51468d47dab
|
6
6
|
|
7
7
|
|
8
8
|
### 発生している問題・エラーメッセージ
|
9
|
+
ページ最下部のpython manage.py runserverを実行するとエラーになります。
|
10
|
+
以下エラーメッセージ
|
11
|
+
C:\Users\aaa\Desktop\aaa\bb\作成プログラム\webApp>py manage.py runserver
|
12
|
+
Watching for file changes with StatReloader
|
13
|
+
Performing system checks...
|
9
14
|
|
15
|
+
Exception in thread django-main-thread:
|
16
|
+
Traceback (most recent call last):
|
17
|
+
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in _bootstrap_inner
|
18
|
+
self.run()
|
19
|
+
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run
|
20
|
+
self._target(*self._args, **self._kwargs)
|
21
|
+
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\site-packages\django\utils\autoreload.py", line 64, in wrapper
|
22
|
+
fn(*args, **kwargs)
|
23
|
+
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\commands\runserver.py", line 134, in inner_run
|
24
|
+
self.check(display_num_errors=True)
|
25
|
+
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\base.py", line 487, in check
|
26
|
+
all_issues = checks.run_checks(
|
27
|
+
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\checks\registry.py", line 88, in run_checks
|
28
|
+
new_errors = check(app_configs=app_configs, databases=databases)
|
29
|
+
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\checks\urls.py", line 14, in check_url_config
|
30
|
+
return check_resolver(resolver)
|
31
|
+
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\checks\urls.py", line 24, in check_resolver
|
32
|
+
return check_method()
|
33
|
+
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\site-packages\django\urls\resolvers.py", line 480, in check
|
34
|
+
for pattern in self.url_patterns:
|
35
|
+
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\site-packages\django\utils\functional.py", line 49, in __get__
|
36
|
+
res = instance.__dict__[self.name] = self.func(instance)
|
37
|
+
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\site-packages\django\urls\resolvers.py", line 696, in url_patterns
|
38
|
+
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
|
39
|
+
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\site-packages\django\utils\functional.py", line 49, in __get__
|
40
|
+
res = instance.__dict__[self.name] = self.func(instance)
|
41
|
+
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\site-packages\django\urls\resolvers.py", line 689, in urlconf_module
|
42
|
+
return import_module(self.urlconf_name)
|
43
|
+
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
|
44
|
+
return _bootstrap._gcd_import(name[level:], package, level)
|
45
|
+
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
|
46
|
+
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
|
47
|
+
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
|
48
|
+
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
|
49
|
+
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
|
50
|
+
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
|
51
|
+
File "C:\Users\aaa\Desktop\aaa\bb\作成プログラム\webApp\webApp\urls.py", line 22, in <module>
|
52
|
+
path('', include("hello_app.urls")),
|
53
|
+
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\xml\etree\ElementInclude.py", line 128, in include
|
54
|
+
_include(elem, loader, base_url, max_depth, set())
|
55
|
+
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\xml\etree\ElementInclude.py", line 136, in _include
|
56
|
+
if e.tag == XINCLUDE_INCLUDE:
|
10
57
|
AttributeError: 'str' object has no attribute 'tag'
|
11
|
-
となってしまい調べても同様の症例が見つかりませんでした。
|
12
58
|
### 該当のソースコード
|
13
59
|
|
14
60
|
```python
|