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

Latest commit

 

History

History
56 lines (39 loc) · 882 Bytes

README.md

File metadata and controls

56 lines (39 loc) · 882 Bytes

ShareRoom

一个交换分享书籍,电影以及各类资源的平台

使用方法

  • 安装环境

    pip install pipenv
    cd ShareRoom
    pipenv install
    pipenv shell
  • 配置 secure.py

    cd ./app
    nano secure.py

    配置项如下

    DEBUG = True
    
    # 数据库配置
    SQLALCHEMY_DATABASE_URI = "mysql+cymysql://root:[email protected]:3306/database?charset=utf8"
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SECRET_KEY = ""
    
    # Email 配置
    MAIL_SERVER = 'smtp.qq.com'
    MAIL_PORT = 465
    MAIL_USE_SSL = True
    MAIL_USE_TSL = False
    MAIL_USERNAME = '[email protected]'
    MAIL_PASSWORD = 'password'
    MAIL_SUBJECT_PREFIX = '[Codes-Room]'
    MAIL_SENDER = 'name <[email protected]>'
  • 运行 share.py

    (此时应该在pipenv shell中)

    cd ../
    pyhon3 share.py

运行截图