查看Django版本

code

>>> import django
>>> django.version
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'django' has no attribute 'version'
>>> django.VERSION
(2, 2, 5, 'final', 0)

原文地址:https://www.cnblogs.com/sea-stream/p/13548615.html