<html> <head> <title>Better Form Validation---jsjingdian17.10 </titl...
from django.utils.translation import gettext_lazy as _ from django.core.exceptions import ValidationError from django.contrib.auth import password_validation # 회원가입 Expand Down Expand Up @@ -40,4 +53,80 @@ def post (self, request): class CustomTokenObtainPairView(TokenObtainPairView...
Code validation and get token: POST /auth/auth/ body: { "phone_number":"user phone number", "code":sms_code } result: 200/400 response (with token)Change phone number: POST /auth/change-phonenumber/ body: { "new_phone_number":"user new phone number" } result: 200/400 response...
73 @@ +from django.contrib.auth import get_user_model +from django.contrib.auth.password_validation import validate_password +from django.utils import timezone +from rest_framework import serializers + +from account.models import Profile + + +class ProfileSerializer(serializers.ModelSerializer): +...
Unhandled exception in thread started by <function check_errors..wrapper at 0x7fd66513ef28> Traceback (most recent call last): File "django/utils/autoreload.py", line 225, in wrapper File "/tmp/_MEImHg8uh/django/core/management/commands/...
73 @@ +from django.contrib.auth import get_user_model +from django.contrib.auth.password_validation import validate_password +from django.utils import timezone +from rest_framework import serializers + +from account.models import Profile + + +class ProfileSerializer(serializers.ModelSerializer): +...