You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing comments in __main__.py about the configuration being loaded first, saying it should be loaded asap (certainly before settings, which uses it)
The thing that confuses me is that __init__.py contains a bunch of initialization stuff, amongst which a number of uses of the aforementioned settings package..
But __init__.py is always loaded first, is it not?
So that would still trigger the configuration load, or am I missing something?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm seeing comments in
__main__.py
about the configuration being loaded first, saying it should be loaded asap (certainly beforesettings
, which uses it)The thing that confuses me is that
__init__.py
contains a bunch of initialization stuff, amongst which a number of uses of the aforementionedsettings
package..But
__init__.py
is always loaded first, is it not?So that would still trigger the configuration load, or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions