On Mon, 2006-05-15 at 10:55 +0000, Filipe wrote:
> Hi all,
> 
> I'm starting a new project and am looking for the right framework for
> it. Django is the best candidate so far :)
> 
> If I understand right it's not mandatory to have a relational database
> to use Django, as long as one does not inherit models from
> "meta.Model".

Correct.

> My question is, how about using an already existing database? I will
> need to use a database of an application that is currently in
> production (I can't touch it's schema), so the DB won't be generated
> from my model in Django. Is it possible to use model classes without
> the object-relational mapper (as if no relational database was used)
> and still use SQL to directly manipulate data in a DB?

You can't use the model classes in your case, since they effectively
*are* the database interface in Django (you can poke around under the
covers if you need to, but usually you just use the models).

If you want to use Django with your own database access layer, then that
is not too hard. You can still use the views and templating stuff. You
just need to call your own data access functions, instead of importing
anything derived from django.db.models.

> If someone could also direct me to some examples would be great.

Quite recently on this list, Bill de hÔra posted an example of
interfacing Django with an RDF backend, which shows you the amount of
work required (not very much, as it turns out). See
http://groups.google.com/group/django-users/browse_frm/thread/8cbc50fe8d81d63b/7121c50e30aac92f?tvc=1#7121c50e30aac92f
 for the relevant message.

Regards,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to