'future' is not a registered tag library.

'future' is not a registered tag library.
Must be one of:
admin_list
admin_modify
admin_static
admin_urls
basket_tags
cache
category_tags
compress
currency_filters
dashboard_tags
datetime_filters
display_tags
flatpages
form_tags
history_tags
i18n
image_tags
l10n
log
product_tags
promotion_tags
purchase_info_tags
reviews_tags
shipping_tags
sorl_thumbnail
sorting_tags
static
staticfiles
string_filters
thumbnail
tz
widget_tweaks
wishlist_tags
Request Method: GET
Request URL: http://127.0.0.1:8000/basket/
Django Version: 2.2.10
Exception Type: TemplateSyntaxError
Exception Value:
'future' is not a registered tag library. Must be one of:
admin_list
admin_modify
admin_static
admin_urls
basket_tags
cache
category_tags
compress
currency_filters
dashboard_tags
datetime_filters
display_tags
flatpages
form_tags
history_tags
i18n
image_tags
l10n
log
product_tags
promotion_tags
purchase_info_tags
reviews_tags
shipping_tags
sorl_thumbnail
sorting_tags
static
staticfiles
string_filters
thumbnail
tz
widget_tweaks
wishlist_tags
Exception Location: /home/appleyuchi/.virtualenvs/python3.7/lib/python3.7/site-packages/django/template/defaulttags.py in find_library, line 1025
Python Executable: /home/appleyuchi/.virtualenvs/python3.7/bin/python
Python Version: 3.7.5
Python Path:
['/home/appleyuchi/桌面/Python新手/PythonNew/第十三章-全功能电子商务网站django-oscar建置实务-当前☆☆☆☆☆☆☆',
 '/home/appleyuchi/.virtualenvs/python3.7/lib/python37.zip',
 '/home/appleyuchi/.virtualenvs/python3.7/lib/python3.7',
 '/home/appleyuchi/.virtualenvs/python3.7/lib/python3.7/lib-dynload',
 '/usr/lib/python3.7',
 '/home/appleyuchi/.virtualenvs/python3.7/lib/python3.7/site-packages',
 '/home/appleyuchi/.virtualenvs/python3.7/lib/python3.7/site-packages/python_alipay_sdk-2.0.1-py3.7.egg']
Server time: Sat, 7 Mar 2020 14:49:39 +0800

Error during template rendering

In template /home/appleyuchi/桌面/Python新手/PythonNew/第十三章-全功能电子商务网站django-oscar建置实务-当前☆☆☆☆☆☆☆/templates/oscar/basket/partials/basket_content.html, error at line 5

 

 

解决方案:

subl /templates/oscar/basket/partials/basket_content.html

注释掉future语句:

{#{% load url from future %}#}

 

你可能感兴趣的:(Django)