摘要:
import osimport sysROOT = 'settings.py所在目录'sys.path.append(ROOT)from django.core.management import setup_environimport settingssetup_environ(settings)... 阅读全文
摘要:
settings.py配置1 '''邮件配置'''2 EMAIL_HOST = 'smtp.163.com'3 EMAIL_PORT = 254 EMAIL_HOST_USER = 'xxxx@163.com'5 EMAIL_HOST_PASSWORD = 'xxx'6 UserEmail='xxx... 阅读全文