RuntimeError: Model class Moonstargram.notifications.models.Notification doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
다음과 같은 에러로그가 발생했는데..
from django.apps import AppConfig
class NotificationsConfig(AppConfig):
name = 'notifications'
앱의 이름이 정확한 위치를 가리키고 있지 않아서 이다.
from django.apps import AppConfig
class NotificationsConfig(AppConfig):
name = 'Moonstargram.notifications'
다음과 같이 해결하였다.
'BackEnd > Django' 카테고리의 다른 글
[Django]내 이미지 댓글 지우기 [질문중] (0) | 2018.11.07 |
---|---|
[Django]Notification API2 (0) | 2018.11.07 |
[Django]Notification API (0) | 2018.11.07 |
[Django]Notification App 만들기 (0) | 2018.11.06 |
[Django]해시태그 search 2 (0) | 2018.11.06 |