Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#3893 closed (fixed)

inspectdb correction(introspect)

Reported by: Kashif Razzaqui <kashif.razzaqui@…> Owned by: Jacob
Component: Documentation Version: master
Severity: Keywords: inspectdb, introspect
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


On this page -

Auto-generate the models

Django comes with a utility that can create models by introspecting an existing database. You can view the output by running this command: inspectdb

Save this as a file by using standard Unix output redirection: inspectdb >

This feature is meant as a shortcut, not as definitive model generation. See the documentation for more information.

Once you’ve cleaned up your models, name the file and put it in the Python package that holds your app. Then add the app to your INSTALLED_APPS setting.

This will generate environment errors

the command should be

python inspectdb >

Change History (2)

comment:1 Changed 11 years ago by Adrian Holovaty

(In [4964]) Added note to docs/django-admin.txt about the examples using django-admin.txt but the examples being just as relevant for Refs #3893

comment:2 Changed 11 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [4965]) Fixed #3893 -- Changed docs/legacy_databases.txt examples to use instead of Thanks, Kashif Razzaqui

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