These are chat archives for django/django
Anyone know about how to check the item is on database or not
try: user = User.objects.get(username=nick) if user.check_password(pass_field): #TODO: Valid password, insert your code here else: #TODO: Password not valid, handle it here pass except User.DoesNotExist: #TODO: Your error handler goes here pass
But I want to do this on serializer, is it good? or using unique field?