[Answer]-Django acces the setting given in –settings argument on runserver in program

1👍

If your question is “how do my django apps modules know which settings to import”, the answer is simply to replace any import settings with from django.conf import settings.

0👍

Why don’t you separate these different settings in separate files like settings_local.py and settings_remote.py and import each one on necessity in the main settings.py file that holds all the common settings.

This way you won’t have to give optional parameters in the runserver command.

Leave a comment