I am migrating a Django project from 2 to 3 and am running into an import(?) error.
One of the apps/modules contains an __init__.py
, admin.py
, forms.py
, models.py
, urls.py
, and view.py
, but when the module is imported/created only admin
, forms
, and models
are a part of it.
A dir of the module looks like this:
['__builtins__',
'__cached__',
'__doc__',
'__file__',
'__loader__',
'__name__',
'__package__',
'__path__',
'__spec__',
'admin',
'forms',
'models']
If I try something like import app.views
or from . import views
, I get a SyntaxError
.