Python/Django
Django 모델 알아보기 - User 모델 및 커스터마이징
Django에서 간단하게 User 모델 만들기 >>> from django.contrib.auth.models import User >>> user = User.objects.create_user('john', 'lennon@thebeatles.com', 'johnpassword') # At this point, user is a User object that has already been saved # to the database. You can continue to change its attributes # if you want to change other fields. >>> user.last_name = 'Lennon' >>> user.save() 일단 기본적인 장고의 User모델은 django...
2023. 1. 26. 14:14