最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Template Syntax Error when using Django allauth - Stack Overflow

programmeradmin0浏览0评论

I encountered this error when trying to improve the UI of login and signup pages..

TemplateSyntaxError at /accounts/logout/ 'slippers' is not a registered tag library. Must be one of: account admin_list admin_modify admin_urls allauth allauth_ui cache i18n l10n log socialaccount static tz widget_tweaks

i had already installed the following packages:

django-allauth==65.2.0
django-allauth-ui==1.5.1
django-widget-tweaks==1.5.0

contents of project's settings.py:

INSTALLED_APPS = [
    ...
    # third-party apps
    "allauth_ui",
    "allauth",
    "allauth.account",
    "allauth.socialaccount",
    "widget_tweaks",
]

I just tried to reinstall the packages and it's still Template Error :(

I encountered this error when trying to improve the UI of login and signup pages..

TemplateSyntaxError at /accounts/logout/ 'slippers' is not a registered tag library. Must be one of: account admin_list admin_modify admin_urls allauth allauth_ui cache i18n l10n log socialaccount static tz widget_tweaks

i had already installed the following packages:

django-allauth==65.2.0
django-allauth-ui==1.5.1
django-widget-tweaks==1.5.0

contents of project's settings.py:

INSTALLED_APPS = [
    ...
    # third-party apps
    "allauth_ui",
    "allauth",
    "allauth.account",
    "allauth.socialaccount",
    "widget_tweaks",
]

I just tried to reinstall the packages and it's still Template Error :(

Share Improve this question asked Nov 20, 2024 at 2:14 J VJ V 33 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

According to the docs for allauth_ui - "django-allauth-ui depends on jazzband/django-widget-tweaks and mixxorz/slippers to render templates. Make sure to install both packages and add them to the INSTALLED_APPS."

Looks like you have only installed django-widget-tweaks.

发布评论

评论列表(0)

  1. 暂无评论