Closed 9gix closed 9 years ago
No wonder I experienced this error yesterday when deploying to Apache. It's strange, why does application.models have to be a module? We are only importing application.models.core. And the strangest thing is, it works in my computer but not on server.
because you are "importing".
import
statement will find, load and initialize module, not folder or file
because models.core is not a python module.
__init__.py
marks a folder being a python module. Thus allowing us to import it.__init__.py