Django 中权限的创建位于哪里?
我需要进行一些调试,因为我的模型之一的权限创建错误。所以我试图找到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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看
create_permissions
;请注意,当它收到post_syncdb
信号时,它就会启动。Check out
create_permissions
; note that it is wired up to fire when it receives thepost_syncdb
signal.