There is a SQLAlchemy DB backend for Django that allows you to write Django ORM models on top of a SQLAlchemy ORM layer. But that's just if you need the Django ORM. For example if you want to use a database engine that is not supported by Django but is supported by SQLAlchemy. Or I guess if you want to do some tricks with the schema, say, to map a legacy schema to something that suits the Django ActiveRecord style ORM better. I'm not an expert on this, though, so you might want someone else's response, too.
But if you just want to write your Django web site using SQLAlchemy as the ORM, nothing says you can't. Django is just Python so go ahead and use any Python libraries you like. The URLconf, views, templates and forms system is not tied to the Django ORM. Most of the contrib apps are, though. Also the modelforms part of the forms framework is, too, but I guess you can write your own SQLAlchemyModelForm for that or just stick to plain forms. And, as I mentioned above, if you use the SQLAlchemy ORM backend, you should be use those parts too that are tied to the Django ORM. At least in theory because I don't know the state in which the SQLAlchemy backend currently is. Erik On 01.10.2008, at 18:39, Matt Wilson wrote: > > I've been working with TurboGears 1.0 (kid and SQLObject) and I have > some time to do a rewrite. I'm considering either going to TG 2.0 > (genshi and SQLAlchemy) or Django. > > I'd love to be able to use SQLAlchemy with Django. I've heard some > people are working with this, but I want to know if people are really > using it in production. > > How hard is it? > > Would I still be able to use newforms and stuff like that? > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---