{"id":16973800,"url":"https://github.com/andywang425/educational-management-system","last_synced_at":"2026-04-13T22:33:05.755Z","repository":{"id":234107714,"uuid":"657526638","full_name":"andywang425/educational-management-system","owner":"andywang425","description":"教务管理系统，后端部分","archived":false,"fork":false,"pushed_at":"2024-04-26T11:33:50.000Z","size":31,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-26T15:47:26.301Z","etag":null,"topics":["flask","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andywang425.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-23T08:57:57.000Z","updated_at":"2024-11-19T12:59:47.000Z","dependencies_parsed_at":"2024-04-18T06:57:13.897Z","dependency_job_id":"529095dc-2cff-4e11-96bb-a97f94061e3e","html_url":"https://github.com/andywang425/educational-management-system","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"9e25a3cb71380e582f222b6903eb4930a11ee050"},"previous_names":["andywang425/educational-management-system"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andywang425%2Feducational-management-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andywang425%2Feducational-management-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andywang425%2Feducational-management-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andywang425%2Feducational-management-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andywang425","download_url":"https://codeload.github.com/andywang425/educational-management-system/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244868753,"owners_count":20523591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","python"],"created_at":"2024-10-14T01:03:38.229Z","updated_at":"2026-04-13T22:33:00.713Z","avatar_url":"https://github.com/andywang425.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 教务管理系统\n\n## 简介\n\n该仓库是教务管理系统的后端部分，使用 Python 的 Flask 框架开发。前端请移步[vue-edu-management-sys](https://github.com/andywang425/vue-edu-management-sys)。\n\n`E-R`文件夹里是数据库关系模式的 E-R 图，应该能帮助理解数据库结构。\n\n## 环境要求\n\n- Python \u003e= v3.11\n- SQL Server 2022\n- ODBC Driver 18 for SQL Server\n\n## 开始\n\n1. Clone 代码并安装依赖\n\n```sh\ngit clone https://github.com/andywang425/educational-management-system.git\ncd educational-management-system\npip install -r requirements.txt\n```\n\n2. 初始化数据库。打开`sql`文件夹，运行`crebas.sql`会生成一个名为`SUEP`的数据库。运行`testdata.sql`可插入一些测试数据。\n\n3. 运行服务器。\n\n```sh\n# 开发环境\npython app.py\n# 生产环境\npython run.py\n```\n\n4. （可选）通过 submodule 获取前端部分。\n\n```sh\ngit submodule init\ngit submodule update\n```\n\n前端部分安装依赖、运行的具体方式请移步[vue-edu-management-sys](https://github.com/andywang425/vue-edu-management-sys)。\n\n## 可能出现的问题\n\n### 找不到数据库驱动\n\n```sh\npyodbc.InterfaceError: ('IM002', '[IM002] [Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序 (0) (SQLDriverConnect)')\n```\n\n解决方法 1：\n\n打开`db`文件夹下的`mssql.py`，尝试把`{{ODBC Driver 18 for SQL Server}}`中的`18`改为`17`。\n\n解决方法 2：\n\n安装驱动，详情见微软官网\u003chttps://learn.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server\u003e。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandywang425%2Feducational-management-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandywang425%2Feducational-management-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandywang425%2Feducational-management-system/lists"}