The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ

Check if request.view_name exists before sending it to the template engine

master
Gergely Polonkai 8 years ago
parent 17a71ddfb6
commit ae4af3669b
  1. 9
      gergelypolonkaiweb/helper.py

@ -33,6 +33,9 @@ def tagcloud(request):
return {'tagcloud': tagcloud}
def viewname(request):
return {
'view_name': request.view_name,
}
if hasattr(request, 'view_name'):
return {
'view_name': request.view_name,
}
else:
return {}

Loading…
Cancel
Save