开发者

Cant understand the format of django.VERSION :-/

What does this mean? 1.0 or 1.1 ?

>>> django.VERSION  
(1, 1, 1,开发者_C百科 'final', 0)

Apologies for such a dumb question!


Is a tuple with the following fields:

"major" The major version number of the Django release, e.g., 1 for the 1.x releases.

"minor" The minor version number of the Django release, e.g., 0 for the 1.0.x releases, 1 for the 1.1.x release, etc.

"micro" The micro version number of the Django release, e.g., 1 for a release number 1.0.1, 2 for a release number 1.0.2, etc.

"release level" A short string describing the type of release. Value will be one of: "alpha", "beta", "rc" (for release candidates, "final".

"serial" For situations where we do more than one release of a given level, the incremental number of the release (e.g., 1 for "alpha 1", 3 for "beta 3", etc.).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜