You can't raise an exception from a template short of writing a custom template tag that would raise an uncaught exception. It is a better practice to put that kind of logic in your model or view.
On Feb 12, 2:40 pm, shabda <[EMAIL PROTECTED]> wrote: > I want my template to raise exception, when an object is not preset or > raises a exception. I am sure there is a setting for it, I just cant > figure out where. Help? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---