Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

gengwenhao/iMooc_django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django开发的教学网站

预览图

关于配置: 在路径iMooc_django/iMooc/config中, 可以详细修改你的配置脚本

  • settings_db.py 数据库配置
  • settings_local.py 开发环境配置
  • settings_product.py 生产环境配置

关于安装:

安装现代人类使用包管理工具pipenv

#pip install pipenv -i https://pypi.douban.com/simple

进入目录

#cd iMooc_django

使用pipenv安装依赖

pipenv install

生成数据库迁移文件

python manage.py migrate

启动项目

python manage.py runserver 0:8080

(访问浏览器localhost:8080端口可以查看)

关于部署:

settings.py中 DEBUG = True -> DEBUG = False

Nginx配置

可以参考 自强学堂Django部署Nginx