Opened 16 years ago

Closed 14 years ago

#11005 closed (wontfix)

./manage query -- query the django orm from the command line

Reported by: dennis@… Owned by: Dennis Kaarsemaker
Component: Core (Management commands) Version: dev
Severity: Keywords:
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Attached patch adds a new ./manage.py command to query the django ORM from the command line. Output is either comma-separated or done with a template, documentation included in the patch.

Attachments (2)

query.patch (4.6 KB ) - added by dennis@… 16 years ago.
Patch that adds ./manage.py query
django-admin-query.diff (8.2 KB ) - added by Dennis Kaarsemaker 15 years ago.
Improved patch, with documentation

Download all attachments as: .zip

Change History (7)

by dennis@…, 16 years ago

Attachment: query.patch added

Patch that adds ./manage.py query

comment:1 by anonymous, 16 years ago

Component: Uncategorizeddjango-admin.py

comment:2 by anonymous, 16 years ago

Needs documentation: set
Needs tests: set
Triage Stage: UnreviewedDesign decision needed

comment:3 by Dennis Kaarsemaker, 15 years ago

Owner: changed from nobody to Dennis Kaarsemaker

by Dennis Kaarsemaker, 15 years ago

Attachment: django-admin-query.diff added

Improved patch, with documentation

comment:4 by Dennis Kaarsemaker, 15 years ago

Needs documentation: unset

New patch attched, includes documentation. Not sure how to test this functionality, hints are appreciated.

comment:5 by Malcolm Tredinnick, 14 years ago

Resolution: wontfix
Status: newclosed

This isn't a common enough use-case to require adding code (and maintenance) to Django. It's easy to do this type of thing from the management shell. It's also easy to write custom management commands if a project or app wanted such functionality. Won't-fixing.

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