Opened 11 years ago
Closed 11 years ago
#21878 closed New feature (wontfix)
django-admin.py output Django version number
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Uncategorized | Version: | dev |
Severity: | Normal | Keywords: | version number |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
When I do:
python manage.py shell
the output is very helpful and tells me the current date and time and the Django version number.
When I do:
django-admin.py startproject my_project
however, I get no output at all.
For me, it would be very helpful to know the Django versioning number, because the output of startproject differs per version and because sometimes I have an older Django installed.
Continuing, outputting the Django version number when using python manage.py shell
would be helpful as well.
Note:
See TracTickets
for help on using tickets.
I disagree.
When you run
manage.py shell
, you get the version number for *Python*, not Django. This is a feature of the Python shell; verbose output makes some sense here because it's an interactive shell, and some verbosity is to be expected.However, returning the version number from a non-interacive command line tool would be inconsistent with usual Unix command styling -- that is, that tools should be quiet unless they have something to actually report. "I'm running" isn't something interesting to report.
If you want to get the Django version number, you can run
django-admin.py --version
(ormanage.py --version
), which is also consistent with Unix tooling.