Django 中权限的创建位于哪里?

发布于 2024-09-05 02:59:42 字数 127 浏览 0 评论 0原文

我需要进行一些调试,因为我的模型之一的权限创建错误。所以我试图找到Django在syncdb上创建权限并将其写入数据库的代码片段,但我根本没有成功;也许我只是忽略了正确的代码行,但如果有人能指出发生这种情况的正确模块/代码行,我会非常高兴!

I need to do some debugging, because the permissions for one of my models are created wrongly. So I tried to find the piece of code where Django creates the permissions upon syncdb and writes them in the database, but I haven't been successful at all; maybe I just overlooked the right lines of code, but if somebody can point me out the right module / line of code where this happens I'd be very happy!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

花开柳相依 2024-09-12 02:59:42

查看 create_permissions ;请注意,当它收到 post_syncdb 信号时,它就会启动。

Check out create_permissions; note that it is wired up to fire when it receives the post_syncdb signal.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文