Record 2 pits of django

When using == in the template to compare variables, there must be spaces on both sides of ==, otherwise an error will be reported.

Model classes in views.py that you want to import into another application cannot use from .. 

from df_f_goods.models import GoodsInfo #Wrong spelling

from ..df_f_goods.models import GoodsInfo #correct writing

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325292042&siteId=291194637