Django 没有名为 path.to 的模块

标签 django

使用 django-allauth尝试加载 url/social/connections/时出现以下错误。

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   

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

谢谢

最佳答案

path.to.something 是文档中“将其替换为模块的实际路径”的简写形式。您可能已经逐字复制了一些内容,而没有用您的实际路径替换它。

关于Django 没有名为 path.to 的模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15071869/

相关文章:

python - Django 迁移中不存在 Mixin 字段

python - Django从外键类中获取属性

django - Postgres 数组

django - 删除 Django 应用程序后清理未使用的数据库表?

Django 自定义 UserModel 中的 id 问题

python - 渲染模板并将数据插入本地存储

python - 如何更改登录 Twitter 用户的 Django Social 身份验证密码

Django ORM : get the monthly average of price for each category

Django 1.5.4 - sqlite 日期时间 - model.datetimeField 返回 None

python - Apache 与 mod_wsgi 发出有关 django 中数据库的错误