Why isn't admin.autodiscover() called automatically in Django when using the admin, why was it designed to be called explicitly?

后端 未结 3 454
旧时难觅i
旧时难觅i 2021-02-05 17:14

Without putting admin.autodiscover() in urls.py the admin page shows You don\'t have permission to edit anything (See SO thread).

Why is this

3条回答
  •  一向
    一向 (楼主)
    2021-02-05 17:36

    Django doesn't require you to use django.contrib.admin on every site - it's not a core module.

提交回复
热议问题