django 의 model 을 수정하고 가끔 이런 메시지를 볼 수 있을텐데 Database 안에 값들이 이미 존재하고 그 필드에 대해 처리 방식을 물어보는 django 의 친절함이라고 생각하면 된다. python manage.py makemigrations You are trying to add the field '필드명' with 'auto_now_add=True' to '모델명' without a default; the database needs something to populate existing rows. 1) Provide a one-off default now (will be set on all existing rows) 2) Quit, and let me add a default in mo..
Framework
JWT (Json Web Token) 인증 개발 경험에 대해 적어 보려고 한다. 처음에 구현 했던 방식은 djangorestframework-jwt 를 사용 했었는데 https://pypi.org/project/djangorestframework-jwt/ djangorestframework-jwt JSON Web Token based authentication for Django REST framework pypi.org (아마 DRF 에서 가장 많이 사용 할 걸?) 일단 Release History 를 보면 2017년이 마지막인걸 볼 수 있고, 개발이 다 끝나고 나서 약간의 문제점은 처음 username, password 를 통해 인증 받을 때, 토큰 (access_token) 하나만 보내준다. 그리고..