#3893: inspectdb correction(introspect)
---------------------------------------------------------+------------------
Reporter: Kashif Razzaqui <[EMAIL PROTECTED]> | Owner: jacob
Status: new | Component:
Documentation
Version: SVN | Keywords:
inspectdb, introspect
Stage: Unreviewed | Has_patch: 1
---------------------------------------------------------+------------------
On this page -
http://www.djangoproject.com/documentation/legacy_databases/
{{{
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:
django-admin.py inspectdb --settings=path.to.settings
Save this as a file by using standard Unix output redirection:
django-admin.py inspectdb --settings=path.to.settings > models.py
This feature is meant as a shortcut, not as definitive model generation.
See the django-admin.py documentation for more information.
Once youve cleaned up your models, name the file models.py 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 manage.py inspectdb > models.py
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/3893>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---