「基于Django在线教育系统」
Introduction-en is here
- linux/windows
- python 2.7
- mysql 5.6
- 邮件服务器(本系统使用网易邮箱:SMTP 服务)
- 执行命令:
pip install -r requirements.txt cp ./config/config.yaml.example ./config/config.yaml
- 编辑 config.yaml
mysql: database: 'hfonline' username: 'root' password: '123456' host: '127.0.0.1' port: 3306 charset: 'utf8' email: host: 'smtp.163.com' port: 25 host_user: 'xxxx@163.com' # 你的邮箱 host_password: 'xxxxxxxx' # 你的密码 use_tls: "no" from: 'xxxx@163.com' # 你的邮箱
- 数据库迁移
python manage.py makemigrations python manage.py migrate
- 启动服务
python manage.py runserver
示例在这里
问:如何开启网易邮箱:SMTP 服务?
答:网易帮助文档:163邮箱如何开启POP3/SMTP/IMAP服务?