你好吗.我有一个Django源项目,我想知道这个项目的版本.如何从源项目中获取django框架版本?干杯!
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!
推荐答案如果您在任何django默认文件'urls.py,settings.py,wsgi.py'中发现任何与URL相关的django文档,该文件将显示django版本,例如我有演示项目的演示文稿的wsgi.py
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 docs.djangoproject/en/1.9/howto/deployment/wsgi/ """这里1.9显示了用于构建此项目的Django版本.
Here 1.9 showing django version that was used to build this project.
这是您找到django项目版本的最后一个选项,如果在django project requirements.txt文件中未提及
This is the last option you can find django project version if not mention in django project requirements.txt file
更多推荐
从源项目获取Django版本
发布评论