获取 Django版本号的两种方式

Posted sea-stream

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了获取 Django版本号的两种方式相关的知识,希望对你有一定的参考价值。

 

one

[email protected]:~$ python
Python 2.7.6 (default, Nov 23 2017, 15:49:48) 
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django.VERSION
(1, 11, 3, ufinal, 0)
>>> exit()

two

[email protected]:~$ python -m django --version
1.11.3
[email protected]:~$ 

 

参考:

https://blog.csdn.net/teavamc/article/details/77520600

以上是关于获取 Django版本号的两种方式的主要内容,如果未能解决你的问题,请参考以下文章