RuntimeError: Model class event.models.Event doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

Han07·2021년 4월 12일
0

superuser를 생성하려고 하니 이런 에러가 났다. 해결 방법은

  1. INSTALLED_APPS에 app이 모두 있는지 확인
  2. makemigrations, migrate 하기

둘 다 안된다면
https://stackoverflow.com/questions/40206569/django-model-doesnt-declare-an-explicit-app-label

이곳을 참고해보자.

0개의 댓글