zh-hans
EMAIL_BACKEND = ‘django.core.mail.backends.smtp.EmailBackend’ #email后端
EMAIL_USE_TLS = False #是否使用TLS安全传输协议
EMAIL_USE_SSL = True #是否使用SSL加密,qq企业邮箱要求使用
EMAIL_HOST = ‘smtp.163.com’ #发送邮件的邮箱 的 SMTP服务器,这里用了qq企业邮箱
EMAIL_PORT = 465 #发件箱的SMTP服务器端口
EMAIL_HOST_USER = ‘mzm5466@163.com’ #发送邮件的邮箱地址
EMAIL_HOST_PASSWORD = ‘授权码’
DEFAULT_FROM_EMAIL = ‘system mzm5466@163.com’
qarbqhtrrmsejdac
1107771338
用户表
class BasicUser(models.Model):
password = models.CharField(verbose_name=u’密码*’, max_length=200, default=0, blank=True, null=True)
name = models.CharField(verbose_name=u’真实姓名*’, max_length=200, default=0, blank=True, null=True)
phone = models.CharField(verbose_name=u’电话号码*’, max_length=200, default=0, blank=True, null=True)
is_active = models.BooleanField(verbose_name=u’是否可用*’, default=True)
is_admin=models.BooleanField(verbose_name=u’是管理员吗1是0不是’, default=False)
email = models.EmailField(verbose_name=u’邮箱’)
createTime = models.DateTimeField(verbose_name=u’账户创建时间’, auto_now_add=True, db_index=True)
class Meta:
verbose_name = '1.基本信息表'
verbose_name_plural = '1.基本信息表'
Create your models here.
class BasicEmail(models.Model):
email=models.EmailField()
code=models.IntegerField(verbose_name=“验证码”,blank=True, null=True)
createTime = models.DateTimeField(verbose_name=u’验证码创建时间’, auto_now_add=True, db_index=True)
class Meta:
verbose_name = '1.基本信息表'
verbose_name_plural = '1.基本信息表'