在学习Django的序列化过程中遇到了这个错误,然后发现原因在于from xxx import xxx的错误
写从哪里导入时,不需要加上project的名称。
直接写app的名称
Change
from tutorial.quickstart import views
to
from quickstart import views
in both tutorial/url.py file as well as tutorial/quickstart/views.pyfile. This should work.
This is required as python automatically ad
老样子,色图时间
ds your current directory to sys path.