How do I turn django's settings object into a dict?
Use the following code:
from django.conf import settings
instance = settings.__dict__['_wrapped'].__dict__
Then you will have the whole settings dict in instance
as dictionary.
Use the following code:
from django.conf import settings
instance = settings.__dict__['_wrapped'].__dict__
Then you will have the whole settings dict in instance
as dictionary.