Django 관리자 페이지에 SOCIAL APPLICATIONS 가 없는 경우가 있다.
SocialApplication, SocialAccount는 allauth.socialaccount 앱에서 제공하는 모델인데, 관리자에 등록이 되어 있지 않으면 보이지 않는다. 이럴 경우 admin에 수동으로 등록해주면 된다.
- admin.py에 아래 코드를 추가한다.
from django.contrib import admin
- 만약에 ImproperlyConfigured: allauth.socialaccount not installed, yet its models are imported.
오류가 뜬다면 settings.py의 INSTALLED_APPS에 라인이 빠져있다는 뜻이다.
-> 아래 코드를 추가한다.
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
...
'allauth',
'allauth.account',
'allauth.socialaccount', # 이 부분을 추가한다.
'allauth.socialaccount.providers.kakao',
]
'에러 모음' 카테고리의 다른 글
| [Django] Table '프로젝트명.socialaccount_socialapp_sites' doesn't exist (0) | 2025.06.03 |
|---|---|
| [Django] InconsistentMigrationHistory 에러 (0) | 2025.06.03 |
| [Django] Table '프로젝트명.django_site' doesn't exist (0) | 2025.06.03 |
| [Django] Django adminstration 에 SITES가 없을 때 (0) | 2025.06.03 |
| [Django] ModuleNotFoundError: No module named 'requests' (0) | 2025.06.03 |