Giter Club home page Giter Club logo

online's Introduction

在线教育平台

Build Status python3.6 django2.0
  该平台的课程由各授课机构提供,授课机构中的各授课老师将录制的视频上传至平台,由平台进行呈现,学员通过平台进行在线学习,项目展示。  

本项目在开发过程中遇到的问题,在我的博客中均有列出。

主要功能:

  • 账号注册、激活、登录、密码找回等功能。
  • 个人中心页面支持个人信息我的课程我的收藏我的消息管理。
  • 首页轮播图、机构、课程展示。
  • 支持讲师、课程、机构选项的全局搜索。
  • 侧边栏提供热门课程推荐、机构/讲师排名、课程咨询。
  • 支持授课机构按类别、按地区筛选,按学习人数、课程数排序。

环境

  • Python 3.6.5
  • Django 2.0.6
  • MySQL 5.7.22

快速启动该项目

1.安装Python 3.6
2.安装MySQL 5.7 并创建online数据库

mysql -u root -p
Enter password: 
mysql> create database online;

3.建立虚拟环境(可省略)

python3 -m venv venv
source venv/bin/activate

4.项目下载

git clone https://github.com/myminwang/online.git
cd online

5.安装Django 2.0

pip install django

6.安装其他依赖包

pip install -r requirements.txt 
# 如有个别包不能安装,请下载源码,放到extra_apps里,并在setting里配置
# pillow包的版本,需要查看官网根据自己的系统选定版本

7.修改配置

# setting.py
# 将数据库密码换成自己的
DATABASES = {
'default': {
    'ENGINE': 'django.db.backends.mysql',
    'NAME': 'online',
    'USER': 'root',
    'PASSWORD': '1234567',
    'HOST': '127.0.0.1',
    'POST': '3306',
    }
}

8.创建数据表

python manage.py makemigrations
python manage.py migrate

9.运行项目

python manage.py runserver

在浏览器地址栏输入:127.0.0.1:8000

关于Mysql及Navicat安装(ox系统)

关于项目部署(使用AWS EC2云服务器)

online's People

Contributors

myminwang avatar

Watchers

edwin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.