Opened 12 years ago

Closed 11 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

Description

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 by Łukasz Balcerzak, 11 years ago

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 http://pythonhosted.org/django-extensions/

comment:2 by Sebastián Magrí, 11 years ago

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 by Kamu, 11 years ago

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

comment:4 by Sebastián Magrí, 11 years ago

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

comment:5 by Kamu, 11 years ago

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

comment:6 by Sebastián Magrí, 11 years ago

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 by Tomek Paczkowski, 11 years ago

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