#NEWLINE# @ register . simple_tag ( takes_context = True ) #NEWLINE# def non_ssl_url( context , url_name , args = None ) : #NEWLINE# #INDENT# path = reverse ( url_name , args ) #NEWLINE# if ( settings . HOSTNAME != 'localhost' ) : #NEWLINE# #INDENT# return ( 'http://%s%s' % ( settings . HOSTNAME , path ) ) #NEWLINE# #UNINDENT# return path