have added __init__.py to my application in a handful of directories but I still can't load the package for some reason. Where should the init files live in this structure?
                  
                  
                  
                  
                  
                  /mood
                  
                  
                     __init__.py
                  
                  
                     main.py
                  
                  
                  /rain
                  
                  
                     __init__.py
                  
                  
                     /components
                  
                  
                        __init__.py
                  
                  
                        db.py
                  
                  
                  
                  
                  
                  mood/main.py:
                  
                  
                  from ..rain.components.db import db ?
                  
                  
                  
                  
                  
                  ModuleNotFoundError: No module named 'rain'
                  
                  
                
yea that won't work
Обсуждают сегодня