How to check Django version

后端 未结 26 2657
梦如初夏
梦如初夏 2020-12-04 04:36

I have to use Python and Django for our application. So I have two versions of Python, 2.6 and 2.7. Now I have installed Django. I could run the sample application for testi

26条回答
  •  情书的邮戳
    2020-12-04 05:17

    Basically the same as bcoughlan's answer, but here it is as an executable command:

    $ python -c "import django; print(django.get_version())"
    2.0
    

提交回复
热议问题