hmm.. I don't think you linked the right item?
Rory
This is what I use to process custom sql statements
def process_sql(query):
from django.db import connection
cursor = connection.cursor()
cursor.execute(query)
results = [dict(zip([item[0] for item in cursor.description],row))
for row in cursor.fetchall()]
return results
On Oct 25, 2:30 am, "DULMANDAKH Sukhbaatar" <[EMAIL PROTECTED]>
wrote:
> http://docs.djangoproject.com/en/dev/howto/legacy-databases/#howto-le...
>
> Here is a guide that will help you to build model from current
> database structure. maybe you need to do some optimizations on it.
>
> --
> Regards
> Dulmandakh
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---