django之隨筆

AbstractUser 定義用戶信息模塊的時候,可繼承django自帶的AbstractUser模塊進行自定義用戶信息表javascript 導入:from django.contrib.auth.models import AbstractUser 在models.py模塊中建立自定義用戶類,代碼以下: SEX_CHOICES = ( ('0', '男'), ('1', '女'
相關文章
相關標籤/搜索