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)

 

仔細看頁面中的報錯,會發現:

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

這是因爲啊,html不能自己調用自己啊.

那麼這麼個寫法有什麼道理所在呢?

這是因爲被調用的文件是開源包裏面的這個文件.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章