On 12/8/06, coulix <[EMAIL PROTECTED]> wrote:
>
> If create tables without django model classes i guess i wont be able to
> use ORM on it right ?

Yes, you can still the ORM. Obviously, using Django to create the
tables will be the easiest approach, but if you manually (or otherwise
external to Django) create the database tables, the Django ORM will
still be able to interact with those tables as long as you create
Django model definitions that match the tables that you create
manually.

If the Django ORM default table/column naming scheme doesn't match the
scheme that you use when you manually create the tables, you can use
the Meta class field 'db_table' and the db_column attribute on fields
to tell Django to use other table/column names.

The process might be automatable using './manage.py inspectdb' to
derive a Django model from the table definitions. This will usually
give a good starting point, but will always come across edge cases -
inspect the output of 'inspectdb' before you base project work on it.

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to