Re: use table not in the model

2010-12-16 Thread Tonton
thanks for yours ansewers i wiil read that i try this def getExtentFromaMap(amap): idx =[] e=[] listcouche = get_list_or_404(Layer, carte_id=amap.id) for l in range(len(listcouche)): x=listcouche[l].dataset_id idx.append (x) for ds in range(len(idx)): y

Re: use table not in the model

2010-12-16 Thread W. Craig Trader
Tonton ... See for details on how to use so-called 'raw' SQL (ie: not managed with models) within Django. - Craig - On Thu, Dec 16, 2010 at 09:16, Tonton wrote: > Hello > i like to use some database table that are not in my models.py > in f

Re: use table not in the model

2010-12-16 Thread bruno desthuilliers
On 16 déc, 15:16, Tonton wrote: > Hello > i like to use some database table that are not in my models.py > in fact some of table will be add and remove by script > > is it possible to use some sql queries with it ? Of course it is. >>> from django.db import connection >>> cursor = connection.cur

Re: use table not in the model

2010-12-16 Thread Mark (Nosrednakram)
On Dec 16, 7:16 am, Tonton wrote: > Hello > i like to use some database table that are not in my models.py > in fact some of table will be add and remove by script > > is it possible to use some sql queries with it ? on not at all ? > > regards > > tonton Hello Tonton, Yes, you have full access

use table not in the model

2010-12-16 Thread Tonton
Hello i like to use some database table that are not in my models.py in fact some of table will be add and remove by script is it possible to use some sql queries with it ? on not at all ? regards tonton -- You received this message because you are subscribed to the Google Groups "Django user