Django admin DoesNotExist at /admin/

前端 未结 9 2068
故里飘歌
故里飘歌 2020-12-01 01:23

I have some problems with Django admin.

after syncdb, the result is:

  Creating tables ...
  Installing custom SQL ...
  Installing indexes ...
  No          


        
9条回答
  •  悲&欢浪女
    2020-12-01 01:56

    Since the above comments are pretty old and the syncdb command doesn't exist, and I don't want to remove django.contrib.sites, here's what worked for me:

    Increment SITE_ID. I had SITE_ID = 1, changed it to SITE_ID = 2 and everything worked again.

提交回复
热议问题