@register.simple_tag(takes_context=True)
def bootstrap_messages(context, *args, **kwargs):
 if (Context and isinstance(context, Context)):
  context = context.flatten()
 context.update({u'message_constants': message_constants})
 return render_template_file(u'bootstrap3/messages.html', context=context)

@ register . simple_tag ( takes_context = True ) def bootstrap_messages ( context , * args , ** kwargs ) : if ( Context and isinstance ( context , Context ) ) : context = context . flatten ( ) context . update ( { u'message_constants' : message_constants } ) return render_template_file ( u'bootstrap3/messages.html' , context = context )
show django .