Python Django: You don't have permission to edit anything

Python Django 在配置完Admin管理界面后,用super admin登录管理界面显示:"You don't have permission to edit anything"

查文档发现:Above we used admin.autodiscover() to automatically load the INSTALLED_APPS admin.py modules.

很明显Django 用admin.autodiscover()来自动载入INSTALLED_APPS admin.py 模块。

找到urls.py,将  admin.autodiscover()的注释去掉后权限正常了。


http://www.cnblogs.com/abeen/archive/2010/09/12/1824427.html

你可能感兴趣的:(django)