Re: Generic views and url issues

2013-01-23 Thread mgc_django-users
On 24/01/2013 10:39 AM, amy.cerr...@cbsinteractive.com wrote: I've been trying to understand how to use generic views. I've followed some tutorials, and read through Django docs, but I can't get the url function to work in my templates. I get the error NoReverseMatch at /testadcall/ Reverse f

Re: Database Query in Shell

2012-05-27 Thread mgc_django-users
On 27/05/2012 9:28 PM, Sandeep kaur wrote: I have a table Amounts which has 2 columns field and other_field. These columns are filled in such a way that either other_field is null or other_field = field. I want to make a database query such that if field == other_field : field = "OTHER" else