Re: Django + Database Connections

2014-11-13 Thread Russell Keith-Magee
On Wed, Nov 12, 2014 at 11:42 AM, Edward Armes wrote: > HI guys, > > Thanks for your responses, they have indeed answered all my questions > pretty much as I was mainly looking for information on how to modify how > Django accesses it's ORM layer. However from your answer

Re: Django + Database Connections

2014-11-12 Thread Edward Armes
Hi Russell, Thank you for your response it has mainly answered my questions as well as given me areas to think about where to insert the asynchronous layer. Edward On Tuesday, 11 November 2014 21:25:44 UTC, Russell Keith-Magee wrote: > > Hi Edward, > > On Tue, Nov 11, 2014 at 12:30 AM,

Re: Django + Database Connections

2014-11-12 Thread Edward Armes
HI guys, Thanks for your responses, they have indeed answered all my questions pretty much as I was mainly looking for information on how to modify how Django accesses it's ORM layer. However from your answer it seems that it would be better that I do it at the model layer. I apologize for being

Re: Django + Database Connections

2014-11-11 Thread Kakar Nyori
Very nicely explained. On Wed, Nov 12, 2014 at 2:55 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > Hi Edward, > > On Tue, Nov 11, 2014 at 12:30 AM, Edward Armes > wrote: > >> Hi there, >> >> I am currently looking at Django for a personal project. While I >>

Re: Django + Database Connections

2014-11-11 Thread Russell Keith-Magee
Hi Edward, On Tue, Nov 11, 2014 at 12:30 AM, Edward Armes wrote: > Hi there, > > I am currently looking at Django for a personal project. While I > understand how a lot of it works I can't wrap my head around how the actual > DB querying is done specifically what part of

Django + Database Connections

2014-11-10 Thread Edward Armes
Hi there, I am currently looking at Django for a personal project. While I understand how a lot of it works I can't wrap my head around how the actual DB querying is done specifically what part of Django actually looks at the database (I'm not talking about Manager, Models or Querysets, but

Re: Django database connections

2009-02-14 Thread Alex Gaynor
On Sat, Feb 14, 2009 at 4:15 PM, Jack Orenstein wrote: > > I'm trying to understand how Django 1.0 handles connections. This is > from the django docs, on the subject of raw SQL: > > from django.db import connection > cursor = connection.cursor() >

Django database connections

2009-02-14 Thread Jack Orenstein
I'm trying to understand how Django 1.0 handles connections. This is from the django docs, on the subject of raw SQL: from django.db import connection cursor = connection.cursor() cursor.execute("select ...") row = cursor.fetchone() If I have a Django app running lots of