摘要: import osimport sysROOT = 'settings.py所在目录'sys.path.append(ROOT)from django.core.management import setup_environimport settingssetup_environ(settings)... 阅读全文
posted @ 2014-07-21 11:25 to_jh 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2014-07-21 11:02 to_jh 阅读(210) 评论(0) 推荐(0) 编辑