Skip to content

Instantly share code, notes, and snippets.

@cjannuzzi
Created April 17, 2023 20:09
Show Gist options
  • Save cjannuzzi/aa243f14022eb9fb453da691391ca174 to your computer and use it in GitHub Desktop.
Save cjannuzzi/aa243f14022eb9fb453da691391ca174 to your computer and use it in GitHub Desktop.
erro retornado pelo terminal ao rodar o localmente.
/Users/caiojannuzzi/PycharmProjects/django-curso/.venv/bin/python /Users/caiojannuzzi/PycharmProjects/django-curso/manage.py runserver
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File "/Users/caiojannuzzi/PycharmProjects/django-curso/.venv/lib/python3.11/site-packages/django/apps/config.py", line 210, in create
app_module = import_module(app_name)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1142, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'base'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "/Users/caiojannuzzi/PycharmProjects/django-curso/.venv/lib/python3.11/site-packages/django/utils/autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "/Users/caiojannuzzi/PycharmProjects/django-curso/.venv/lib/python3.11/site-packages/django/core/management/commands/runserver.py", line 125, in inner_run
autoreload.raise_last_exception()
File "/Users/caiojannuzzi/PycharmProjects/django-curso/.venv/lib/python3.11/site-packages/django/utils/autoreload.py", line 87, in raise_last_exception
raise _exception[1]
File "/Users/caiojannuzzi/PycharmProjects/django-curso/.venv/lib/python3.11/site-packages/django/core/management/__init__.py", line 394, in execute
autoreload.check_errors(django.setup)()
File "/Users/caiojannuzzi/PycharmProjects/django-curso/.venv/lib/python3.11/site-packages/django/utils/autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "/Users/caiojannuzzi/PycharmProjects/django-curso/.venv/lib/python3.11/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/caiojannuzzi/PycharmProjects/django-curso/.venv/lib/python3.11/site-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/caiojannuzzi/PycharmProjects/django-curso/.venv/lib/python3.11/site-packages/django/apps/config.py", line 212, in create
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Cannot import 'base'. Check that 'pypro.base.apps.BaseConfig.name' is correct.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment