解决 'widget_tweaks' is not a registered tag library. Must be one of: 报错问题

一、问题如下:

'widget_tweaks' is not a registered tag library. Must be one of:
admin_list
admin_modify
admin_static
admin_urls
cache
crispy_forms_field
crispy_forms_filters
crispy_forms_tags
crispy_forms_utils
i18n
l10n
log
static
staticfiles
tz
xadmin_tags

二、原因:

安装django插件后未注册

三、解决方案:

在settings里添加如下配置即可:

INSTALLED_APPS = [
    ...
    'widget_tweaks',
]

你可能感兴趣的:(Python)