Hello,
I wanted to run Django runserver with custom settings defined in proj/mysettings.py. So I exported the env variable DJANGO_SETTINGS_MODULE to point to the custom settings file and then I ran manage.py runserver …
The printout was showing that Django was still using the default settings in proj/settings.py, it seems it is ignoring DJANGO_SETTINGS_MODULE.
Is it an intended behavior or a bug ?
What is the recommended way to do that ?
Below the commands I used to reproduce the issue:
$ export DJANGO_SETTINGS_MODULE=”proj.mysettings”
$ python manage.py runserver
0.0.0.0:7474November 11, 2022 - 10:22:48
Django version 3.2.6, using settings 'proj.settings'Starting development server at
http://0.0.0.0:7474/Quit the server with CONTROL-C.
Best regards,
Matteo