dormouse / flask_docs_zhcn Goto Github PK
View Code? Open in Web Editor NEWFlask documents translated by Dormouse Young
Home Page: http://dormousehole.rtfd.org
License: BSD 3-Clause "New" or "Revised" License
Flask documents translated by Dormouse Young
Home Page: http://dormousehole.rtfd.org
License: BSD 3-Clause "New" or "Revised" License
from toranado.ioloop import IOLoop
toranado多了个a
应该是
from tornado.ioloop import IOLoop
典型例如如下两处:
https://dormousehole.readthedocs.io/en/latest/appcontext.html#id3
https://dormousehole.readthedocs.io/en/latest/reqcontext.html#id3
建立翻译成”请求上下文“和”应用上下文“,更加符合惯用翻译
(”惯用“可能需要讨论?我周围的开发者用”上下文“来描述flask的context更多)
在快速上手里的如何生成一个好的密钥中“困此一个好的密钥应当有足够的随机性”
译者是打五笔的吧,这里打了个错别字是“因此”
感谢译者给我们的翻译!
说明来源是肯定的。
快速上手 - 唯一的 URL / 重定向行为 中
projects 的 URL 是中规中举的
中规中举 -> 中规中矩
(flask_doc) root@tesra36:/home/guojin/pr/Flask_Docs_ZhCn# make html
正在运行 Sphinx v2.1.2
Configuration error:
\u914d\u7f6e\u6587\u4ef6\u4e2d\u6709\u7a0b\u5e8f\u4e0a\u7684\u9519\u8bef\uff1a
Traceback (most recent call last):
File "/root/anaconda3/envs/flask_doc/lib/python3.8/site-packages/sphinx/config.py", line 361, in eval_config_file
execfile_(filename, namespace)
File "/root/anaconda3/envs/flask_doc/lib/python3.8/site-packages/sphinx/util/pycompat.py", line 86, in execfile_
exec(code, _globals)
File "/home/guojin/pr/Flask_Docs_ZhCn/conf.py", line 1, in
from pallets_sphinx_themes import get_version
ImportError: cannot import name 'get_version' from 'pallets_sphinx_themes' (/home/guojin/pr/Flask_Docs_ZhCn/pallets_sphinx_themes/init.py)
Makefile:19: recipe for target 'html' failed
make: *** [html] Error 2
您好,根据您README中的步骤来,报了这个错误,请问是什么原因呢?
原文中的连接挂了~
http://dormousehole.readthedocs.org/en/latest/config.html
“配置管理”部分的第二段,“对于 许多小应用来说这不一写是一件坏事”,其中的“不一写”应该是“不一定”吧。看来作者也是用五笔打字啊:)
请问我生成了本地html,怎么可以制作成mobi的格式?想放在kindle上看
http://dormousehole.readthedocs.org/en/latest/quickstart.html#sessions
“如果生成一个好的密钥” 应为 “如何生成一个好的密钥”
这样就启动了一个非常简单的内建的服务器。这个服务器用于测试应该是足够了。但是 用于生产可以是不够的。关于部署的有关内容参见《 部署方式 》。
上面这句中的“可以”应该为可能吧。
原文:
This launches a very simple builtin server, which is good enough for testing but probably not what you want to use in production. For deployment options see Deployment Options.
请求数据库连接页面,代码引用错误:
原代码:
@app.before_request
def before_request():
g.db = connect_db()
@app.teardown_request
def teardown_request(exception):
db = getattr(g, 'db', None)
if db is not None:
db.close()
g.db.close()
应该是:
@app.before_request
def before_request():
g.db = connect_db()
@app.teardown_request
def teardown_request(exception):
db = getattr(g, 'db', None)
if db is not None:
db.close()
~~g.db.close()~~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.