1. Tools Run manage.py Task
startapp trade 交易
startapp user_operation 用户操作
startapp goods 商品
2. users app 中编写models.py
UserProfile用户类继承自AbstractUser, VerifyCode短信验证码继承自models.Model,类
3. settings.py中, 设置使用的用户表为UserProfile
# SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = ‘0)=fc0*6(#xb4i(@6+!8%lpai)elgw)[email protected]^7s$=tw=vx&k‘ # SECURITY WARNING: don‘t run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = [] AUTH_USER_MODEL = ‘users.UserProfile‘ # Application definition