Opened 9 years ago

Closed 9 years ago

#21878 closed New feature (wontfix) output Django version number

Reported by: wim@… 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


When I do:

python shell

the output is very helpful and tells me the current date and time and the Django version number.

When I do: 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 shell would be helpful as well.

Change History (1)

comment:1 Changed 9 years ago by Russell Keith-Magee

Resolution: wontfix
Status: newclosed

I disagree.

When you run 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 --version (or --version), which is also consistent with Unix tooling.

Note: See TracTickets for help on using tickets.
Back to Top