Django settings | Django documentation | Django
docs.djangoproject.com › en › 4When using django-admin, you can either set the environment variable once, or explicitly pass in the settings module each time you run the utility. Example (Unix Bash shell): export DJANGO_SETTINGS_MODULE=mysite.settings django-admin runserver. Example (Windows shell): set DJANGO_SETTINGS_MODULE=mysite.settings django-admin runserver.