I have a Django project with the following structure:
--|src
--project
--|settings
--__init__.py
--production.py
--local.py
--|app1
In my app I import the settings (from django.conf import settings
) and then as I was following a tutorial they said to do this getattr(settings, VARIABLE)
. That doesn't work for me. Instead I can do this: settings.VARIABLE
. What's the difference?
Oh and I ran type(settings)
and it outputted <class 'django.conf.LazySettings'>
.