diff --git a/accounts/admin.py b/accounts/admin.py index 0603e0c..03e4a1a 100644 --- a/accounts/admin.py +++ b/accounts/admin.py @@ -1,5 +1,6 @@ from django.contrib import admin from django.contrib.auth.admin import UserAdmin +from django.contrib.auth.admin import UserAdmin from .models import User diff --git a/friends/models.py b/friends/models.py index 41e315d..cd13ef2 100644 --- a/friends/models.py +++ b/friends/models.py @@ -1,8 +1,6 @@ from django.db import models from accounts.models import User -# Create your models here. - class Friend(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE, related_name="friends") diff --git a/friends/views.py b/friends/views.py index 121f247..b7f6e66 100644 --- a/friends/views.py +++ b/friends/views.py @@ -216,4 +216,4 @@ def decline_request(self, request, friend_id): friend_request.state = "declined" friend_request.save() - return Response({"message": "친구 신청을 거절했습니다."}, status=status.HTTP_200_OK) + return Response({"message": "친구 신청을 거절했습니다."}, status=status.HTTP_200_OK) \ No newline at end of file diff --git a/mustgou/settings.py b/mustgou/settings.py index c5c34b0..ba164c0 100644 --- a/mustgou/settings.py +++ b/mustgou/settings.py @@ -115,11 +115,12 @@ }, ] -REST_FRAMEWORK = { - "DEFAULT_AUTHENTICATION_CLASSES": [ - "rest_framework.authentication.TokenAuthentication", - ] -} +# DRF 로그인 유지를 위해 주석처리 +# REST_FRAMEWORK = { +# "DEFAULT_AUTHENTICATION_CLASSES": [ +# "rest_framework.authentication.TokenAuthentication", +# ] +# } CORS_ALLOWED_ORIGINS = config("CORS_ALLOWED_ORIGINS", default="").split(",") @@ -151,7 +152,7 @@ LANGUAGE_CODE = "en-us" -TIME_ZONE = "UTC" +TIME_ZONE = "Asia/Seoul" USE_I18N = True