Skip to content
No description, website, or topics provided.
HTML Python JavaScript CSS Mako
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
migrations
requirements
tests
tmp/coverage
.gitignore
LICENSE
Procfile
README.md
config.py
manage.py
requirements.txt
runtime.txt

README.md

#Flasky_blog

author: lancecopper

##sketch

This is a blog based on codes described in book "Flasky development".

The site was builit with python web framework Flasky.

The web front-end user template Flask-Bootstrap base5.

##tags information

v1.0: prototype of the project in development environment.

v1.1: some codes were added to deploy the site on heroku.

Now you can visit the blog at heroku

##Here is other gadgets used in this project.

  1. Flask-Script为Flask程序添加命令行解析器。

  2. 前端页面用的是Flask-Bootstrap的base模板5

  3. moment.js处理服务器日期和时间的渲染,Flask-Moment能把moment.js集成到Jinja2模板中。

  4. Flask-WTF可以方便地处理Web表单

  5. 数据库框架是Flask-SQLAlchemy框架

  6. 数据库迁移框架Flask-Migrate,这是一个为迁移框架Alembic(https://alembic.readthedocs.org/en/latest/index.html)写的Flask扩展。

  7. Flask-Mail包装了smtplib

  8. Gravatar 是一个行业领先的头像服务,能把头像和电子邮件地址关联起来

  9. 有多个 Python 包可用于生成虚拟信息,其中功能相对完善的是 ForgeryPy

  10. 使用 Markdown 和 Flask-PageDown支持富文本文章

  • PageDown:使用 JavaScript 实现的客户端 Markdown 到 HTML 的转换程序。
  • Flask-PageDown:为 Flask 包装的 PageDown,把 PageDown 集成到 Flask-WTF 表单中。
  • Markdown:使用 Python 实现的服务器端 Markdown 到 HTML 的转换程序。
  • Bleach:使用 Python 实现的 HTML 清理器。
  1. 使用HTTPie测试 Web 服务

  2. Python 提供了一个优秀的代码覆盖工具,称为 coverage幸运的是,大多数浏览器都支持自动化操作。Selenium是一个 Web 浏览器自动化工具,支持3种主要操作系统中的大多数主流 web浏览器。Selenium 的 Python 接口使用 pip 进行安装:(venv) $ pip install selenium

Problems during development.

This app is using smtp mail service of 163 mailbox now. So it do not support gmail to sign up for the reason of GFW.

The author have tried to use outlook mailbox instead, however an error occured which has not been work out now. The main information of the error can be found in stackoverfloww.

You can’t perform that action at this time.