При попытке запустить сервер используя команду "python manage.py runserver"
Мне высвечивается ошибка:
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\ddv\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users\ddv\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "E:\PyCharm\DjangoProject\venv\lib\site-packages\django\utils\autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "E:\PyCharm\DjangoProject\venv\lib\site-packages\django\core\management\commands\runserver.py", line 134, in inner_run
self.check(display_num_errors=True)
File "E:\PyCharm\DjangoProject\venv\lib\site-packages\django\core\management\base.py", line 487, in check
all_issues = checks.run_checks(
File "E:\PyCharm\DjangoProject\venv\lib\site-packages\django\core\checks\registry.py", line 88, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "E:\PyCharm\DjangoProject\venv\lib\site-packages\django\core\checks\urls.py", line 14, in check_url_config
return check_resolver(resolver)
File "E:\PyCharm\DjangoProject\venv\lib\site-packages\django\core\checks\urls.py", line 24, in check_resolver
return check_method()
File "E:\PyCharm\DjangoProject\venv\lib\site-packages\django\urls\resolvers.py", line 480, in check
for pattern in self.url_patterns:
File "E:\PyCharm\DjangoProject\venv\lib\site-packages\django\utils\functional.py", line 49, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "E:\PyCharm\DjangoProject\venv\lib\site-packages\django\urls\resolvers.py", line 696, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "E:\PyCharm\DjangoProject\venv\lib\site-packages\django\utils\functional.py", line 49, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "E:\PyCharm\DjangoProject\venv\lib\site-packages\django\urls\resolvers.py", line 689, in urlconf_module
return import_module(self.urlconf_name)
File "C:\Users\ddv\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "E:\PyCharm\DjangoProject\helloapp\helloapp\urls.py", line 4, in
from helloapp.firstapp.views import index
ModuleNotFoundError: No module named 'helloapp.firstapp'
Оказывается сервер запускается даже если IDE ругается на ошибку. Несмотря на ошибки, которые подсвечивал Pycharm, я всё равно запустил сервер и он без проблем запустился.