Get Django version from source project

倖福魔咒の 提交于 2021-02-08 12:12:24

问题


How are you friends. I have got one django source project and I would like to know what the version of this project is. How to get django framework version from source project? Cheers!


回答1:


If you found any commented URL related django documentation in any django default file 'urls.py, settings.py, wsgi.py' that will show django version like I have wsgi.py of demo project that have comments

"""
WSGI config for demo project.

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""

Here 1.9 showing django version that was used to build this project.

This is the last option you can find django project version if not mention in django project requirements.txt file



来源:https://stackoverflow.com/questions/44486129/get-django-version-from-source-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!