Django settings — Django 4.0.1 documentation
django.readthedocs.io › en › stableDJANGO_SETTINGS_MODULE When you use Django, you have to tell it which settings you’re using. Do this by using an environment variable, DJANGO_SETTINGS_MODULE. The value of DJANGO_SETTINGS_MODULE should be in Python path syntax, e.g. mysite.settings. Note that the settings module should be on the Python import search path. The django-admin utility
Django settings | Django documentation | Django
docs.djangoproject.com › en › 4DJANGO_SETTINGS_MODULE When you use Django, you have to tell it which settings you’re using. Do this by using an environment variable, DJANGO_SETTINGS_MODULE. The value of DJANGO_SETTINGS_MODULE should be in Python path syntax, e.g. mysite.settings. Note that the settings module should be on the Python import search path. The django-admin utility
python - How to configure DJANGO_SETTINGS_MODULE on macOS ...
stackoverflow.com › questions › 57413925Aug 08, 2019 · DJANGO_SETTINGS_MODULE is not set if you run django-admin. Instead of using django-admin runserver, you need to use python manage.py runserver. This is from the official docs: In addition, manage.py is automatically created in each Django project. It does the same thing as django-admin but also sets the DJANGO_SETTINGS_MODULE environment variable so that it points to your project’s settings.py file.