Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

250
Visualizações
I am new to Django and I can't understand a few errors related to os.environ.setdefault

I found a GitHub repo for reference and practice but when I'm trying to run it on my system it is giving me this error:

Traceback (most recent call last):
  File "C:\Users\Nikita\Desktop\GitHub files\HomieChat-main\homiechat\manage.py", line 22, in <module>
    main()  File "C:\Users\Nikita\Desktop\GitHub files\HomieChat-main\homiechat\manage.py", line 9, in main
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', config('LOCAL_SETTINGS_MODULE'))
  File "C:\Users\Nikita\Desktop\GitHub files\HomieChat-main\env\lib\site-packages\decouple.py", line 199, in __call__
    return self.config(*args, **kwargs)
  File "C:\Users\Nikita\Desktop\GitHub files\HomieChat-main\env\lib\site-packages\decouple.py", line 83, in __call__
    return self.get(*args, **kwargs)
  File "C:\Users\Nikita\Desktop\GitHub files\HomieChat-main\env\lib\site-packages\decouple.py", line 68, in get
    raise UndefinedValueError('{} not found. Declare it as envvar or define a default value.'.format(option))
decouple.UndefinedValueError: LOCAL_SETTINGS_MODULE not found. Declare it as envvar or define a default value.

I can't understand what this error means. I installed the requirements.txt but it's the same. On searching the project for LOCAL_SETTINGS_MODULE, I found: os.environ.setdefault('DJANGO_SETTINGS_MODULE', config('LOCAL_SETTINGS_MODULE')) in settings.py, asgi.py, and wsgi.py.

I need to understand what this LOCAL_SETTINGS_MODULE is and how to fix this error.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda