Giter VIP home page Giter VIP logo

flask_docs_zhcn's People

Contributors

abnerzheng avatar akiirokaede avatar dormouse avatar junyuan-leng avatar kidlj avatar lau-jay avatar lqllife avatar phpgao avatar ryoumon avatar shinux avatar sunoru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flask_docs_zhcn's Issues

困此 改为 因此

快速上手里的如何生成一个好的密钥中“困此一个好的密钥应当有足够的随机性”
译者是打五笔的吧,这里打了个错别字是“因此”
感谢译者给我们的翻译!

别字

快速上手 - 唯一的 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中的步骤来,报了这个错误,请问是什么原因呢?

可以?可能?

这样就启动了一个非常简单的内建的服务器。这个服务器用于测试应该是足够了。但是 用于生产可以是不够的。关于部署的有关内容参见《 部署方式 》。

上面这句中的“可以”应该为可能吧。

原文:
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()~~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.