Skip to content

Commit 7911d2a

Browse files
committed
Update ambiguous doc about pre-install package configuration
1 parent 8bd7cb6 commit 7911d2a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

docs/runtime.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ SAE Python会对应用导入的模块(包括index.wsgi)进行缓存,从而
9898

9999
.. warning:: gevent和tornado worker还处在bleeding edge, use at your own risk。
100100

101-
* 使用第三方库 ::
101+
* 使用预装模块
102+
103+
部分预装的第三方模块不在python的默认模块搜索路径中,需要在config.yaml中配置后才可以使用。 ::
102104

103105
libraries:
104106
- name: django
@@ -107,7 +109,7 @@ SAE Python会对应用导入的模块(包括index.wsgi)进行缓存,从而
107109
- name: numpy
108110
version: "1.6.1"
109111

110-
name为第三方模块的名称,version为需要使用的版本,这两个字段为必填字段。
112+
name为第三方模块的名称,version为需要使用的版本,这两个字段为必填字段。 :ref:`pre-installed-package-list`
111113

112114
* 静态文件处理
113115

@@ -153,6 +155,8 @@ SAE Python会对应用导入的模块(包括index.wsgi)进行缓存,从而
153155

154156
3. 以上两条规则仅为兼容性考虑保留,不推荐使用,请在config.yaml明确配置。
155157

158+
.. _pre-installed-package-list:
159+
156160
预装模块列表
157161
---------------------
158162

0 commit comments

Comments
 (0)