Type object 'Meta' has no attribute' model'

(venv3_ETC) [root@iZwz9hbv3lrr68d8bo5dvpZ goods]-sharp python views.py
Traceback (most recent call last):
File "views.py", line 5, in < module >

from .serializer import GoodsSerializer

ModuleNotFoundError: No module named"_ main__.serializer";"_ main__" is not a package

clipboard.png

clipboard.png

clipboard.png


should be a problem of module parsing. First of all, is there serializer.py and _ _ init__.py next to your views.py ? Both of these files exist so that you can import other modules in the python3 using the syntax of from .filename import moduleName , that is, under your own package ( package ).

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32bc4-341e9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32bc4-341e9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?