Git Product home page Git Product logo

mooconline's Introduction

MoocOnline

使用Python3.x与Django2.0.1开发的在线教育平台网站: http://www.imooc.pythonanywhere.com

Quick Start

$ git clone https://github.com/smallren101/MoocOnline.git
$ cd MoocOnline
$ pip install -r requirements.txt
$ python manage.py runserver

use the address: http://127.0.0.1:8000/

Contents:

  1. 先安装mysql 安装的时候需要密码设置为admin

修改settings.py文件

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': "mooconline",
        'USER': 'root',
        'PASSWORD': "admin",
        'HOST': "127.0.0.1"
    }
}
  1. 创建数据库
$ create database mooconline charset='utf8';
  1. navicat 导入sql文件

  2. pip install -r req.txt 安装依赖包

  3. 然后pip install mysqlclient-1.3.12-cp36-cp36m-win_amd64.whl 安装mysqlclient驱动

  4. 创建管理员账户

$ python manage.py createsuperuser
  1. 收集静态文件
$ python manage.py collectstatic --noinput
$ python manage.py runserver
  1. 浏览器中输入 127.0.0.1:8000访问

求打赏鼓励

很高兴我的项目代码对你有帮助,请我吃包辣条吧!

微信打赏:

Image text

mooconline's People

Contributors

ivanreen avatar

Watchers

James Cloos avatar  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.