get_object_or_404

2010-11-14 Thread Akn
Hi, I would like to use get_object to retrieve an object form the database, but if the object does not exist I do not want to display an error page(404). Is there any command that does that. ob=get_object(Table,x=y) if not ob -- You received this message because you are subscribed to th

Total in a django template

2010-11-06 Thread Akn
Hi, In a django template I have a for loop that display (item, fine). I would like to compute the total fine value at the end of the for loop. Is it possible to compute the total in the template? How can I do it -- You received this message because you are subscribed to the Google Groups "Django

How can you change the color of the form's error messages

2010-10-27 Thread Akn
Hi all, How can I customize the error message that comes from a form from (e.g. change the color) Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from thi