I started learning Django some weeks back and i am encountering a particular error.
Import Error: cannot import Room from partially initialized module.
Pls how can I fix this, have been to stackflow and other sites I can not find the solutions
I started learning Django some weeks back and i am encountering a particular error.
Import Error: cannot import Room from partially initialized module.
Pls how can I fix this, have been to stackflow and other sites I can not find the solutions
It looks like you have a circular import. The module ola.views
probably imports ola.models
either directly or through a chain of imports which makes an import loop. This is a problem because normally you cannot import the same module again before the first import finished (the execution reached the end of the module file).
Probably the best practice is to split the modules in a way that the required imports make a tree dependency structure (without loops).