Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Trubles with running the server

44 views
Skip to first unread message

al3tiby0

unread,
Dec 6, 2022, 3:26:34 PM12/6/22
to Django users
Hi guys, when i tried to run the server, it gives me this error:

(housstates) 3toby@Mohammads-MacBook-Air housstates % python3 manage.py runserver

Watching for file changes with StatReloader

Exception in thread django-main-thread:

Traceback (most recent call last):

  File "/opt/homebrew/Cellar/pyt...@3.10/3.10.6_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 1016, in _bootstrap_inner

    self.run()

  File "/opt/homebrew/Cellar/pyt...@3.10/3.10.6_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 953, in run

    self._target(*self._args, **self._kwargs)

  File "/Users/3toby/.local/share/virtualenvs/housstates-nj0lFIor/lib/python3.10/site-packages/django/utils/autoreload.py", line 64, in wrapper

    fn(*args, **kwargs)

  File "/Users/3toby/.local/share/virtualenvs/housstates-nj0lFIor/lib/python3.10/site-packages/django/core/management/commands/runserver.py", line 125, in inner_run

    autoreload.raise_last_exception()

  File "/Users/3toby/.local/share/virtualenvs/housstates-nj0lFIor/lib/python3.10/site-packages/django/utils/autoreload.py", line 87, in raise_last_exception

    raise _exception[1]

  File "/Users/3toby/.local/share/virtualenvs/housstates-nj0lFIor/lib/python3.10/site-packages/django/core/management/__init__.py", line 398, in execute

    autoreload.check_errors(django.setup)()

  File "/Users/3toby/.local/share/virtualenvs/housstates-nj0lFIor/lib/python3.10/site-packages/django/utils/autoreload.py", line 64, in wrapper

    fn(*args, **kwargs)

  File "/Users/3toby/.local/share/virtualenvs/housstates-nj0lFIor/lib/python3.10/site-packages/django/__init__.py", line 24, in setup

    apps.populate(settings.INSTALLED_APPS)

  File "/Users/3toby/.local/share/virtualenvs/housstates-nj0lFIor/lib/python3.10/site-packages/django/apps/registry.py", line 91, in populate

    app_config = AppConfig.create(entry)

  File "/Users/3toby/.local/share/virtualenvs/housstates-nj0lFIor/lib/python3.10/site-packages/django/apps/config.py", line 193, in create

    import_module(entry)

  File "/opt/homebrew/Cellar/pyt...@3.10/3.10.6_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py", line 126, in import_module

    return _bootstrap._gcd_import(name[level:], package, level)

  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import

  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load

  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked

ModuleNotFoundError: No module named 'd'


I could'n't find an answer

Kasper Laudrup

unread,
Dec 7, 2022, 3:31:58 AM12/7/22
to django...@googlegroups.com
On 06/12/2022 21.04, al3tiby0 wrote:
> Hi guys, when i tried to run the server, it gives me this error:
>
> ModuleNotFoundError: No module named 'd'
>

Your INSTALLED_APPS should be an array, not a string.

Kind regards,
Kasper Laudrup
OpenPGP_0xE5D9CAC64AAA55EB.asc
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages