Opened 6 years ago

Closed 5 years ago

#20273 closed New feature (wontfix)

Report installed dependencies and its versions when DEBUG=True

Reported by: Sebastián Magrí Owned by: nobody
Component: Core (Management commands) Version: 1.5
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


It would be useful to have a list of installed packages and its dependencies in the DEBUG output to ease the diagnose of certain errors.

Change History (7)

comment:1 Changed 5 years ago by Łukasz Balcerzak

Component: UncategorizedCore (Management commands)

Don't see much profit from this but please be more precise about the outcome:

  • how this information should be printed?
  • for which commands this should be printed? (shell, runserver? something else? i.e. it doesn't make much sense if user runs syncdb or dbshell commands)

It sounds more like an add-on to

comment:2 Changed 5 years ago by Sebastián Magrí

I'm sorry I wasn't clear enough. What I'm talking about is having the list of installed dependencies in the 500 error page template when DEBUG=True.

Best Regards.

comment:3 Changed 5 years ago by Kamu

What information do you mean when you say 'dependencies'? Do you mean all the python packages installed in your environment?

comment:4 Changed 5 years ago by Sebastián Magrí

Mostly the packages installed in the current environment. INSTALLED_APPS would be used to determine which modules are currently affecting app behaviour...

comment:5 Changed 5 years ago by Kamu

Would that actually help debugging? I'm skeptical it would.

comment:6 Changed 5 years ago by Sebastián Magrí

I had this though after having found in several occasions that a specific error was related with the dependencies being outdated. There could be a DEBUG specific setting listing packages that need to be queried.

comment:7 Changed 5 years ago by Tomek Paczkowski

Resolution: wontfix
Status: newclosed

I don't think Django should include that feature. Django-debug-toolbar is much more suited for that kind of stuff and, indeed, it already contains something like that, Versions Panel.

I'm closing this as wontfix: it's not a job of framework to inspect other packages for versions. If you feel that this is something really needed, please bring it to DevelopersMailingList.

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