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:7474
November 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

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/821066be-0877-4ab1-a98f-c6a18dd62931n%40googlegroups.com.

Reply via email to