You don't have permission to edit anything

 启用'django.contrib.admin'后login到admin显示"You don't have permission to edit anything", 查了下文档http://docs.djangoproject.com/en/dev/ref/contrib/admin/#hooking-adminsite-instances-into-your-urlconf,发现admin.autodiscover()这行注释没去掉,再试就可以编辑了。

你可能感兴趣的:(python,django)