Django

Code

Ticket #90 (closed: fixed)

Opened 3 years ago

Last modified 1 year ago

Add "django-admin.py inspectdb" option

Reported by: adrian Assigned to: adrian
Milestone: Component: Tools
Version: Keywords:
Cc: miernik@ffii.org Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description (Last modified by adrian)

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.

Attachments

Change History

07/21/05 23:53:27 changed by adrian

  • description changed.

08/01/05 14:47:24 changed by adrian

  • milestone set to Version 1.0.

08/02/05 00:23:25 changed by adrian

  • status changed from new to assigned.

08/02/05 12:08:25 changed by adrian

(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.

08/03/05 22:49:48 changed by adrian

  • status changed from assigned to closed.
  • resolution set to fixed.

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.

02/06/06 19:11:08 changed by anonymous

  • cc set to miernik@ffii.org.

01/17/07 16:12:17 changed by

  • milestone deleted.

Milestone Version 1.0 deleted


Add/Change #90 (Add "django-admin.py inspectdb" option)




Change Properties
Action