How can I iterate over all the Django settings? I need to read all the settings which begin with MYAPP_.
I’ve tried doing this:
from django.conf import settings
for setting in settings:
print setting
…but i get the following exception:
TypeError: 'LazySettings' object is not iterable
Any ideas on how I can accomplish this?
1 Answer