Joseph Kocherhans wrote:
> On 5/16/06, Filipe <[EMAIL PROTECTED]> wrote:
>> Do you think I'll find difficulties in using model classes with my own
>> data persistency logic? In such case, will I loose other features
>> besides the ORMapping itself? (I've read something about loosing
>> autogenerated admin pages, form validations, etc)
> 
> Models classes basically == ORM. You can't separate the two. You will
> lose the Admin system, generic views, and the permissions system, but
> templates, views, url mapping, caching, etc. will still work. IMO
> Django's still a great framework even if you don't use it's ORM.
> 
> You may want to take a look at SQLAlchemy. I've heard it can handle
> legacy database schemas a lot easier. You can use it with Django, but
> you still won't get the Admin system, generic views, or permissions.

Hmm, couldn't you use the model classes except the db API, and load/save
/find stuff with custom SQL? Then you've got to write your own
manipulators.

Anyway, I see a major limitation in Django, mainly caused by not
supporting composite primary keys here, and this will drag people with
existing databases, where you often naturally come to tables with
composite primary keys, away from Django. Unfortunately. And there are a
lot of existing databases out there ...

I was planning to add something like this since I need it, too, but
people recommended strongly against it, since Django was just not
written with this in mind. Can't tell you much currently, I've not even
considered all alternatives.

Filipe, what kinds of tables use composite primary keys for you?

[ ]  association tables for many-to-many relations
[ ]  dependent tables
[ ]  "inheritence" look-alikes

Michael


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to