运行时错误在Django admin中删除用户时调用Python对象时超出了最大递归深度

2024-03-29 07:10:17 发布

您现在位置:Python中文网/ 问答频道 /正文

在我的开发服务器上,我试图删除管理员中的一个用户,但出现以下错误:

RuntimeError maximum recursion depth exceeded while calling a Python object

直到几天前,它还很管用。 我使用的是Django 1.3.1。当我读到有些浏览器不适合开发服务器时,我尝试了各种浏览器。我不记得除了在应用程序中更改视图以外的任何内容,与用户无关。几天前,我更新了django social auth的最新版本。除此之外,我对这里发生的事情一无所知!有人能给我点启示吗?在


Tags: django用户服务器object管理员错误浏览器depth
1条回答
网友
1楼 · 发布于 2024-03-29 07:10:17

我是django和django社交认证的新手,只是阅读文档。这是你的问题吗? (来自here):

Custom User model If defining a custom user model, do not import social_auth from any models.py that would finally import from the models.py that defines your User class or it will make your project fail with a recursive import because social_auth uses get_model() to retrieve your User.

相关问题 更多 >