# find_teammates **Repository Path**: find-teammates/find_teammates ## Basic Information - **Project Name**: find_teammates - **Description**: 项目组队平台 - **Primary Language**: Python - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: http://39.108.75.135:8000/ - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-12-30 - **Last Updated**: 2023-05-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: Django, Bootstrap ## README # Find Teammates ## 如何开始 首先把仓库克隆到本地 ```shell git clone {{ 本仓库git链接 }} ``` 然后安装依赖 ### 方法1 直接 `pip install` ```shell pip install -U django pyyaml mysqlclient markdown2 aiofiles pillow ``` ### 方法2 使用 `poetry` 如果你还没安装`poetry`,可以借助`pipx`安装: ```shell pip install pipx pipx ensurepath pipx install poetry ``` 接下来运行 ```shell poetry install ``` 即可安装依赖 ### 如何配置数据库环境变量 本项目数据库的配置在`find_teammates/db.yaml`这个文件里,这个文件是不通过Git同步的,所以需要你自己填写。 **数据库的配置涉及敏感信息,因此不会公开在互联网上** 不需要手动修改`db.yaml`文件,在django服务启动时会自动要求你输入所需信息。你只需要启动服务: ```shell python manage.py runserver 8000 ``` 如果不存在`db.yaml`文件,终端会要求你输入: ```python >>> engine: >>> name: >>> user: >>> password: >>> host: >>> port: ``` 如果有报错 ValueError: Dependency on app with no migrations: main,可以输入以下命令 ```shell python manage.py makemigrations python manage.py migrate ``` 正确输入后,它就会自动创建`db.yaml`,然后你的服务就启动在 已存在`db.yaml`时不会要求你重新输入