Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

252
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda