Opened 11 years ago

Closed 11 years ago

Last modified 9 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: UI/UX:

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 Changed 11 years ago by Adrian Holovaty

Description: modified (diff)

comment:2 Changed 11 years ago by Adrian Holovaty

milestone: Version 1.0

comment:3 Changed 11 years ago by Adrian Holovaty

Status: newassigned

comment:4 Changed 11 years ago by Adrian Holovaty

(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 Changed 11 years ago by Adrian Holovaty

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 Changed 11 years ago by anonymous

Cc: miernik@… added

comment:7 Changed 10 years ago by (none)

milestone: Version 1.0

Milestone Version 1.0 deleted

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