Django admin DoesNotExist at /admin/

前端 未结 9 2072
故里飘歌
故里飘歌 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 02:02

    The same problem also suddenly came to me, and you know there're many solutions. However, what's the reason of this sudden problem?

    After dig in deeply, I found the reason is that, we ignored a step in the first syncdb action.

    When you have your first syncdb, django will ask you to create a default account, if you don't input in this interactive show, that site object would not be created automatically.

    So be careful of this. I'm using django 1.3.1, don't know whether the latest version has resolved this issue.

提交回复
热议问题