django的页面报错中出现xxxx.html (Skipped)
生活随笔
收集整理的這篇文章主要介紹了
django的页面报错中出现xxxx.html (Skipped)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
完整報錯如下:
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)
?
仔細看頁面中的報錯,會發(fā)現(xiàn):
由上可知,出現(xiàn)了basket_content.html的內(nèi)容中有extends xxxx/xxx/basket.html的內(nèi)容
這是因為啊,html不能自己調(diào)用自己啊.
那么這么個寫法有什么道理所在呢?
這是因為被調(diào)用的文件是開源包里面的這個文件.
總結(jié)
以上是生活随笔為你收集整理的django的页面报错中出现xxxx.html (Skipped)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。