问题
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