Re: Calling the same views, displaying in different templates

2010-04-13 Thread rvidal
Thanks! I knew there was a way around this. Repeating code is very not like django :) Works like a charm. Thanks again. On Apr 13, 12:30 am, Danny Adair wrote: > On Tue, Apr 13, 2010 at 15:59, rvidal wrote: > >[...] > > I have my urls.py looking

Re: Calling the same views, displaying in different templates

2010-04-13 Thread Danny Adair
On Tue, Apr 13, 2010 at 15:59, rvidal wrote: >[...] > I have my urls.py looking something like this: > urlpatterns = patterns('mysites.shop.views', >        (r'^$', 'index'), >        (r'^client/(?P\d+)/$', 'details'), >        (r'^client/(?P\d+)/receipts/$', 'receipts'), >      

Re: Calling the same views, displaying in different templates

2010-04-13 Thread bruno desthuilliers
On 13 avr, 05:59, rvidal wrote: > I have my urls.py looking something like this: > urlpatterns = patterns('mysites.shop.views', >         (r'^$', 'index'), >         (r'^client/(?P\d+)/$', 'details'), >         (r'^client/(?P\d+)/receipts/$', 'receipts'), >        

Calling the same views, displaying in different templates

2010-04-12 Thread rvidal
Hi, I have a database of related data connected via foreign keys. One to many relationships between one table and various other tables. Random example: Client - id - name - age Receipts - id - client (fk) - timestamp Contacts - id - client (fk) - timestamp I have my urls.py looking something