django的页面报错中出现xxxx.html (Skipped)

完整报错如下:

Using engine django:

  • django.template.loaders.filesystem.Loader: /home/appleyuchi/桌面/Python新手/PythonNew/第十三章的情况上视图增加物流/templates/oscar/basket/partials/basket_content.html (Skipped)
  • django.template.loaders.app_directories.Loader: /home/appleyuchi/.virtualenvs/python3.7/lib/python3.7/site-packages/django/contrib/admin/templates/oscar/basket/partials/basket_content.html (Source does not exist)
  • django.template.loaders.app_directories.Loader: /home/appleyuchi/.virtualenvs/python3.7/lib/python3.7/site-packages/django/contrib/auth/templates/oscar/basket/partials/basket_content.html (Source does not exist)
  • django.template.loaders.app_directories.Loader: /home/appleyuchi/.virtualenvs/python3.7/lib/python3.7/site-packages/compressor/templates/oscar/basket/partials/basket_content.html (Source does not exist)
  • django.template.loaders.app_directories.Loader: /home/appleyuchi/.virtualenvs/python3.7/lib/python3.7/site-packages/paypal/templates/oscar/basket/partials/basket_content.html (Source does not exist)
  • django.template.loaders.app_directories.Loader: /home/appleyuchi/.virtualenvs/python3.7/lib/python3.7/site-packages/oscar_promotions/templates/oscar/basket/partials/basket_content.html (Source does not exist)
  • django.template.loaders.app_directories.Loader: /home/appleyuchi/.virtualenvs/python3.7/lib/python3.7/site-packages/oscar/templates/oscar/basket/partials/basket_content.html (Source does not exist)

 

仔细看页面中的报错,会发现:

django的页面报错中出现xxxx.html (Skipped)

由上可知,出现了basket_content.html的内容中有extends xxxx/xxx/basket.html的内容

这是因为啊,html不能自己调用自己啊.

那么这么个写法有什么道理所在呢?

这是因为被调用的文件是开源包里面的这个文件.