1

web2pyのDjangoにsetting.pyのようなものはないことを理解しています。しかし、web2pyのこれらのグローバル設定に適した場所はありますか?

秘密鍵やグローバル定数などを入れたいと思います。

4

1 に答える 1

0

Although they might not work the same under the hood, you can still put your application-wide global setting inside this file applications/yourapp/models/0_whatever_name.py

Content in this file will be defined before (each) request reaches your app.

Or you can simply append your app-wide global definitions into applications/yourapp/models/db.py By default it already contains lots of settings for this app.

于 2013-06-26T14:05:28.370 に答える