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.
- [Answer]-Python console error: ImportError: No module named 'django'
- [Answer]-Override ForeignKey relationship in child model?
- [Answer]-Saving Django Formsets
Source:stackexchange.com