Silver Library (Archived)
Django - Unsolved error (solved) 본문
[FIXED]
directory: users/forms.pyCaused by : typo mistake(...). Just confused myself with JS camel case.
class SignUpForm(forms.ModelForm):
===============
IntegrityError at /users/login/github/callback
NOT NULL constraint failed: users_user.username
Request Method: GET
Request URL: http://127.0.0.1:8000/users/login/github/callback?
Note:
As soon as when I press 'github login' - linked by Oauth of Github.
This shows up the error message (above).
========================
Better review this part to fix this once I come back later.
#17.4
This might be linked to the issue of 'sign up - unicode error'.
Still, this seems to be a specific file's problem.
Don't give up.
So far,
1. Sign up - unicode error (difficulty: for now, I have no idea how to fix this one. Critical problem.)
2. Github login error -
#Potentially work...?
name = profile_json.get("name")
name = username if name is None else name
bio = profile_json.get("bio")
bio = "" if bio is None else bio
*01-20 Note
Kakaotalk Login/Signup works correctly.
'Personal DB > Unclassified record' 카테고리의 다른 글
Self-check amid copying airbnb website (0) | 2021.02.03 |
---|---|
DJango - individual project record (good news) (0) | 2021.02.01 |
[Django] How to test something - user's viewpoint (0) | 2021.01.19 |
Django - debug note (2) SMTP? < Unicode?? (0) | 2021.01.14 |
django - cleaned_data (0) | 2021.01.12 |