Conversation
added 3 commits
May 20, 2024 19:53
Member
|
아마 토큰 앞에 Bearer를 안붙여주셔서 그런 것 같아요! |
kseysh
approved these changes
May 27, 2024
Member
kseysh
left a comment
There was a problem hiding this comment.
id 중복 체크가 없는 것 같은데 맞나요?
그래도 심화과제까지 해보려고 한 모습 너무 좋습니다! 고생하셨어요~
Comment on lines
-60
to
-86
| CORS_ALLOW_METHODS = [ # 허용할 옵션 | ||
| 'DELETE', | ||
| 'GET', | ||
| 'OPTIONS', | ||
| 'PATCH', | ||
| 'POST', | ||
| 'PUT', | ||
| ] | ||
|
|
||
| CORS_ALLOW_HEADERS = [ # 허용할 헤더 | ||
| 'accept', | ||
| 'accept-encoding', | ||
| 'authorization', | ||
| 'content-type', | ||
| 'dnt', | ||
| 'origin', | ||
| 'user-agent', | ||
| 'x-csrftoken', | ||
| 'x-requested-with', | ||
| ] | ||
|
|
||
| CORS_ALLOW_CREDENTIALS = True | ||
|
|
||
| CORS_ALLOW_ORIGINS = [ | ||
| 'https://likelion-fivedasol.p-e.kr/', | ||
| ] | ||
|
|
Comment on lines
+36
to
+39
| GENDER_OPT =( | ||
| ('남자', '남자'), | ||
| ('여자', '여자'), | ||
| ) |
Comment on lines
+38
to
+40
| django_login(request, user) | ||
| refresh = RefreshToken.for_user(user) | ||
| update_last_login(None, user) |
Member
There was a problem hiding this comment.
만들어둔 login함수가 아닌 다른 함수로 사용한 이유가 있나요?
어떤 역할을 하는 함수인지 궁금해요
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
login이랑 refresh 모두 잘 되는데, signup만 자꾸 401에러가 뜨는데 해결을 못했습니다..


