2👍
You can import
the Django settings in a module-specific way at run time in the specific app where you need it to. You do this by:
from django.conf import settings
from internal_api import internal_api_settings
settings.configure(default_settings=internal_api_settings)
Where internal_api_settings
will be a module in internal_api
that specifies the JWT_AUTH
values. I believe you can be even more specific in your settings.configure()
call and actually specify:
settings.configure(JWT_AUTH=internal_api_settings.settings_dictionary)
Where settings_dictionary
is the value you want passed into the settings.
Source:stackexchange.com