Get the version of Django for application

后端 未结 6 1657
感动是毒
感动是毒 2021-02-18 22:33

I am starting a new (actually very old) project which I know is in Django. I am getting lost knowing the exact version of Django it has been build upon. Is there a way I can kno

6条回答
  •  [愿得一人]
    2021-02-18 23:05

    I see the answer accepted above and I think it's much easier. Maybe I'm missing something, but this is what I would do.

    Open a python terminal that has the Django project on its path.

    $ python
    >>> import django
    >>> print django.get_version()
    0.97-pre-SVN-7668
    

    That version number is strictly for illustration. Yours may differ, I hope.

提交回复
热议问题