{"id":24869942,"url":"https://github.com/konglx90/flask-web-learn","last_synced_at":"2026-04-30T03:33:27.250Z","repository":{"id":92324439,"uuid":"57198761","full_name":"konglx90/flask-web-learn","owner":"konglx90","description":"Study for book Flask Web develop","archived":false,"fork":false,"pushed_at":"2017-12-29T07:48:52.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-30T22:05:45.169Z","etag":null,"topics":["flask"],"latest_commit_sha":null,"homepage":"","language":"Python","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/konglx90.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":"2016-04-27T08:52:20.000Z","updated_at":"2017-12-29T07:49:21.000Z","dependencies_parsed_at":"2023-05-19T15:15:44.261Z","dependency_job_id":null,"html_url":"https://github.com/konglx90/flask-web-learn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/konglx90/flask-web-learn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konglx90%2Fflask-web-learn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konglx90%2Fflask-web-learn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konglx90%2Fflask-web-learn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konglx90%2Fflask-web-learn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/konglx90","download_url":"https://codeload.github.com/konglx90/flask-web-learn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konglx90%2Fflask-web-learn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32453792,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["flask"],"created_at":"2025-02-01T03:36:14.058Z","updated_at":"2026-04-30T03:33:27.219Z","avatar_url":"https://github.com/konglx90.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 《Flask Web开发》前六章的代码\n\n### Run...\n\n创建虚拟环境`virtualenv env`\n\n激活虚拟环境`source env/bin/activate`\n\n安装需要的库`pip install -r requirements.txt`\n\n迁移数据库`python hello.py db migrate`\n\n### Good parts\n- 坚持使用虚拟环境\n    + virtualenv env\n    + source env/bin/activate\n    + deactivate\n- 熟悉Git\n    + git clone\n    + git pull\n    + git fetch\n    + git merge\n    + git push\n    + git branch\n    + git checkout\n- 采用装饰器实现理由控制`@app.route('/', method=['GET', 'POST'])`\n- 上下文全局变量\n    + current_app 程序上下文\n    + g           程序上下文\n    + request     请求上下文\n    + session     请求上下文\n- 使用Jinja2模板引擎\n- 优雅的Flash消息\n- 采用关系型数据库sqlite\n- Flask 扩展\n    + flask-script\n    + flask-bootstrap\n    + flask-moment\n    + flask-wtf\n    + flask-SQLAlchemy\n    + flask-migrate\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonglx90%2Fflask-web-learn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkonglx90%2Fflask-web-learn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonglx90%2Fflask-web-learn/lists"}