Django没有名为path.to的模块

jas*_*son 2 django

在尝试加载url/social/connections /时使用django-allauth我收到以下错误.

Error during template rendering

In template /Users/user/Documents/workspace/iFetch/templates/socialaccount/snippets/login_extra.html, error at line 3
No module named path.to
1   {% load socialaccount %}
2   
3   {% providers_media_js %}
4   
5   
Run Code Online (Sandbox Code Playgroud)

这是什么意思,我该如何解决或错过了什么?

谢谢

Dan*_*man 6

path.to.something是一个文档的简写,"用你的实际路径替换它来模块化".您可能已经逐字复制了某些内容,而没有将其替换为您的实际路径.

  • 得到它,使用django-allauth中的代码示例,它实际上包含一个''LOCALE_FUNC':'path.to.callable',`variable ... (2认同)