我最近更新了,Django网站管理已经坏了(我必须补充一下,我不知道这是否是问题的根本原因,因为我已经有一段时间没有使用它了,只是注意到它。
我收到以下错误:
docker exec -u root cdt-selenium mkdir -p /root/cdt-tests/csv-data
我看了一眼,有些人暗示这是一个错误。有人说要降级到1.8(这不是一种选择)。我将回溯放在此电子邮件的底部。非常感谢您提供任何帮助。
Internal Server Error: /admin/
TemplateSyntaxError at /admin/
'future' is not a registered tag library. Must be one of:
account
account_tags
admin_list
admin_modify
admin_static
admin_urls
avatar_tags
cache
crispy_forms_field
crispy_forms_filters
crispy_forms_tags
crispy_forms_utils
dwadfilters
humanize
i18n
l10n
log
mathfilters
socialaccount
socialaccount_tags
static
staticfiles
tinymce_tags
tz
答案 0 :(得分:2)
根据您已编写的内容几乎不可能确切地知道,但您可能已升级超过已弃用的模板标记功能(load ... from future
)并且您需要通过并升级包含它们的软件包或者将模板更新为不再在加载标记中包含from future
。