Olá, tudo certo? Eu sou um bolsista do IFF de Campos dos Goytacazes e peguei um projeto que usa o Django, eu precisei baixar o projeto do github e criar um diretório, logo, fiz todos os passos do vídeo, contudo, no final, quando dou o manage.py runserver, da isso: Lembrando que meu projeto já possui muitos arquivos nele... E eu cortei parte do erro porque não coube...
(venv) ph@ph:~/Projetos/bpsois-main$ python manage.py runserver Traceback (most recent call last): File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/core/management/base.py", line 412, in run_from_argv self.execute(*args, **cmd_options) File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/core/management/commands/runserver.py", line 74, in execute super().execute(*args, **options) File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/core/management/base.py", line 458, in execute output = self.handle(*args, **options) File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/core/management/commands/runserver.py", line 81, in handle if not settings.DEBUG and not settings.ALLOWED_HOSTS: File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/conf/_init.py", line 102, in _getattr self._setup(name) File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/conf/init.py", line 89, in _setup self._wrapped = Settings(settings_module) File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/conf/_init.py", line 217, in _init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 848, in exec_module File "", line 219, in _call_with_frames_removed File "/home/ph/Projetos/bpsois-main/lerBPMN/settings.py", line 2, in from decouple import config, Csv ModuleNotFoundError: No module named 'decouple'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "manage.py", line 21, in main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/core/management/init.py", line 442, in execute_from_command_line utility.execute() File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/core/management/init.py", line 436, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/core/management/base.py", line 425, in run_from_argv connections.close_all() File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/utils/connection.py", line 84, in close_all for conn in self.all(initialized_only=True): File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/utils/connection.py", line 76, in all return [ File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/utils/connection.py", line 73, in iter return iter(self.settings) File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/utils/functional.py", line 57, in get res = instance.dict[self.name] = self.func(instance) File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/utils/connection.py", line 45, in settings self._settings = self.configure_settings(self._settings) File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/db/utils.py", line 148, in configure_settings databases = super().configure_settings(databases) File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/utils/connection.py", line 50, in configure_settings settings = getattr(django_settings, self.settings_name) File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/conf/_init.py", line 102, in _getattr self._setup(name) File "/home/ph/Projetos/bpsois-main/venv/lib/python3.8/site-packages/django/conf/init.py", line 89, in _setup self._wrapped = Settings(settings_module)