Getting Site Matching Query Does Not Exist Error after creating django admin

后端 未结 12 2128
后悔当初
后悔当初 2020-12-07 15:05

I\'m going through the standard Django tutorial to create an admin for an app. After commenting the admin related stuff in settings and running syncdb I\'m getting this mess

12条回答
  •  生来不讨喜
    2020-12-07 15:19

    In addition to Simeon Visser's answer for those of you still experiencing problems, make sure the SITE_ID variable in your settings matches the ID of your newly created Site-object.

提交回复
热议问题