从源项目获取Django版本

编程入门 行业动态 更新时间:2024-10-26 08:33:00
本文介绍了从源项目获取Django版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好吗.我有一个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版本

本文发布于:2023-11-12 11:39:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581399.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:版本   项目   Django

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!