argh, template render errors, catch
This commit is contained in:
parent
a691694a62
commit
ce8cedfdee
|
@ -82,9 +82,8 @@ class ItfModel(models.Model):
|
||||||
|
|
||||||
def insidepage_dict(self):
|
def insidepage_dict(self):
|
||||||
if not exists(self.get_template_path()):
|
if not exists(self.get_template_path()):
|
||||||
return {
|
html = "Template not found."
|
||||||
'html': "Template for this model not found."
|
else:
|
||||||
}
|
|
||||||
try:
|
try:
|
||||||
html = render_to_string(self.get_template_path(), self.info_dict())
|
html = render_to_string(self.get_template_path(), self.info_dict())
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user