Opened 19 years ago

Closed 19 years ago

Last modified 17 years ago

#90 closed enhancement (fixed)

Add "django-admin.py inspectdb" option

Reported by: Adrian Holovaty Owned by: Adrian Holovaty
Component: Tools Version:
Severity: normal Keywords:
Cc: miernik@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Adrian Holovaty)

django-admin.py inspectdb would take an argument -- the database name -- and would introspect the existing database-table structures and print a Django model to standard output.

Change History (7)

comment:1 by Adrian Holovaty, 19 years ago

Description: modified (diff)

comment:2 by Adrian Holovaty, 19 years ago

milestone: Version 1.0

comment:3 by Adrian Holovaty, 19 years ago

Status: newassigned

comment:4 by Adrian Holovaty, 19 years ago

(In [384]) Added first stab at 'django-admin.py inspectdb', which takes a database name and introspects the tables, outputting a Django model. Works in PostgreSQL and MySQL. It's missing some niceties at the moment, such as detection of primary-keys and relationships, but it works. Refs #90.

comment:5 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: assignedclosed

As of [398], I'm closing this, because it's good enough at this point to be used in common cases. I'll be filing lower-priority tickets for individual features we need to add to inspectdb, but for version 1.0, this will suffice.

comment:6 by anonymous, 19 years ago

Cc: miernik@… added

comment:7 by (none), 18 years ago

milestone: Version 1.0

Milestone Version 1.0 deleted

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