Coder Social home page Coder Social logo

book-recommendation's Introduction

安装指南

  • 版本要求
    1. Python >= 3.0.0 (如 Python 3.8.0)
    2. mysql 版本随意 (如 mysql 8.0.22)
  • 温馨提示
    1. 建议添加 mysql 环境变量
    2. 执行安装步骤3 时建议使用 PyCharm 运行
  • 安装步骤
    1. 执行 douban.sql 中的sql语句,导入数据
      • 使用你自己的用户名和密码登录 mysql
      • 执行 source douban.sql
        source douban.sql;
      • (可选) 检查执行结果
        show tables;
    2. 将自己的数据库用户名和密码写入 settings.py 第85、86行
    3. 执行 pip install -r requirements.txt 语句,导入依赖
       pip install -r requirements.txt
    4. 配置项目启动信息
      • PyCharm 右上角点击 Add Configuration 按钮
      • 点击右上角 + 按钮
      • 选择 Django Server 按钮
      • Name 修改名字,Host 添加网址,选择 Run browser
  • 可能遇到的问题
    1. Q: 执行 source douban.sql 时遇到问题
      A: 把目标文件移动到命令行执行目录下(如 C:\User\dyf),或目标文件完整的路径(如 D:\book-recommendation\douban.sql)
    2. Q: 网速太慢了
      A: 建议使用国内镜像源

book-recommendation's People

Contributors

duanython 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.