{"id":26071230,"url":"https://github.com/itisyang/unknown","last_synced_at":"2026-02-14T01:02:44.477Z","repository":{"id":133450833,"uuid":"325238600","full_name":"itisyang/unknown","owner":"itisyang","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-05T07:41:25.000Z","size":543,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-01T13:53:44.177Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itisyang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-12-29T09:05:01.000Z","updated_at":"2021-01-05T07:41:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"43298681-e7e8-4243-b1d8-45e2dae0d1ba","html_url":"https://github.com/itisyang/unknown","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itisyang/unknown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itisyang%2Funknown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itisyang%2Funknown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itisyang%2Funknown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itisyang%2Funknown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itisyang","download_url":"https://codeload.github.com/itisyang/unknown/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itisyang%2Funknown/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29427631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T22:20:51.549Z","status":"ssl_error","status_checked_at":"2026-02-13T22:20:49.838Z","response_time":78,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-03-09T00:01:22.351Z","updated_at":"2026-02-14T01:02:44.386Z","avatar_url":"https://github.com/itisyang.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"Python + Flask 做的一个简单的问题系统，包括以下功能：\n\n1.注册\n\n2.发布问答\n\n3.评论\n\n4.搜索问题\n\n其模型为最最最最最基础版的知乎。\n\n本项目参考《Flask Web开发：基于Python的Web应用开发实践》，其gitbook地址为：https://l1nwatch.gitbooks.io/flask-web-python-web/content/\n\nUbuntu下使用方法：\n\n1.下载仓库到本地\n\n2.切换到仓库所在路径\n\n3.创建Python虚拟环境：先先删除项目中的venv文件夹然后使用如下命令创建Python虚拟环境virtualenv venv（如果没有这个工具可以使用$sudo apt-get install python-virtualenv命令进行安装）\n\n4.激活虚拟环境：$source venv/bin/activate，激活后显示为：(venv)$\n\n5.安装依赖：pip install -r requirements.txt(依赖不完全的话在运行时可以提示缺少的模块继续安装即可)\n\n6.创建数据库：打开一个新的终端，使用如下命令：mysql -uroot -p，输入你的密码，然后用如下命令创建数据库create database 数据库名 charset utf8;（注意别忘了分号）（Ununtu下安装使用mysql可以参考：https://www.cnblogs.com/EasonJim/p/7147787.html）\n\n7.修改配置文件config.py中USERNAME PASSWORD DATABASE分别为数据库登录名，数据库登录密码，数据库名\n\n8.数据库迁移（先删除项目中的migrations文件夹）：\n\n  创建迁移仓库：python manage.py db init\n  \n  创建迁移脚本：python manage.py db migrate -m \"initial migration\"\n  \n  更新数据库：python manage.py db upgrade\n  \n9.运行项目：python manage.py runserver\n\n10.打开浏览器，在地址栏输入127.0.0.1:5000即可访问\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitisyang%2Funknown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitisyang%2Funknown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitisyang%2Funknown/lists"}