Code

#20273 closed New feature (wontfix)

Report installed dependencies and its versions when DEBUG=True

Reported by: sebasmagri 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.

Attachments (0)

Change History (7)

comment:1 Changed 14 months ago by LukaszBalcerzak

  • Component changed from Uncategorized to Core (Management commands)
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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 Changed 14 months ago by sebasmagri

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 14 months 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 14 months ago by sebasmagri

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 13 months ago by Kamu

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

comment:6 Changed 13 months ago by sebasmagri

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 13 months ago by oinopion

  • Resolution set to wontfix
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.