#NEWLINE# @ register . filter #NEWLINE# def get( d , key_name ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# value = d . get ( key_name ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# from django.conf import settings #NEWLINE# value = settings . TEMPLATE_STRING_IF_INVALID #NEWLINE# #UNINDENT# return d