Quando tento executar o arquivo Populate.py recebo o seguinte erro:
Traceback (most recent call last):
File "C:\Users\Jonat\OneDrive\Área de Trabalho\Teste\Django_API_clientes\manage.py", line 5, in <module>
from clientes.models import Cliente
File "C:\Users\Jonat\OneDrive\Área de Trabalho\Teste\Django_API_clientes\clientes\models.py", line 4, in <module>
class Cliente(models.Model):
File "C:\Users\Jonat\OneDrive\Área de Trabalho\Teste\Django_API_clientes\venv\lib\site-packages\django\db\models\base.py", line 107, in __new__
app_config = apps.get_containing_app_config(module)
File "C:\Users\Jonat\OneDrive\Área de Trabalho\Teste\Django_API_clientes\venv\lib\site-packages\django\apps\registry.py", line 252, in get_containing_app_config
self.check_apps_ready()
File "C:\Users\Jonat\OneDrive\Área de Trabalho\Teste\Django_API_clientes\venv\lib\site-packages\django\apps\registry.py", line 134, in check_apps_ready
settings.INSTALLED_APPS
File "C:\Users\Jonat\OneDrive\Área de Trabalho\Teste\Django_API_clientes\venv\lib\site-packages\django\conf\__init__.py", line 76, in __getattr__
self._setup(name)
File "C:\Users\Jonat\OneDrive\Área de Trabalho\Teste\Django_API_clientes\venv\lib\site-packages\django\conf\__init__.py", line 57, in _setup
raise ImproperlyConfigured(
django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
Procurei no google sobre, mas não encontrei a solução.