Error Overflow

Django admin page에 들어가려는데 500 Server Error나 DoesNotExist at /admin/login/ 오류가 뜨는 경우

Fullstacknology 2022. 10. 27. 18:59

  

  실수로 Django admin 페이지의 site 카테고리에서 exemple.com 을 날려버렸더니 이런 오류가 출력된다. 괜히 건드려서 고생하고 있다. 해결책은 금방 찾아서 정말 다행이였다.

 

 이전 도메인.. 즉 내가 삭제한 exemple.com 도메인이 DB의 id = 1에 저장되었고 새로 구매한 도메인이 id = 2에 저장되어 있으므로 settings.py의 SITE_ID = 2를 이용해야 한다는 것이다.

 

https://stackoverflow.com/questions/9736975/django-admin-doesnotexist-at-admin

 

Django admin DoesNotExist at /admin/

I have some problems with Django admin. after syncdb, the result is: Creating tables ... Installing custom SQL ... Installing indexes ... No fixtures found. What does this mean? Anyway,...

stackoverflow.com

 

 

 

settings.py 파일의 SITE_ID = 1을 2로 수정한다.

 

  해결!