def register_template_library(package_name):
 if (not django.template.libraries.get(package_name, None)):
  django.template.add_to_builtins(package_name)

def register_template_library ( package_name ) : if ( not django . template . libraries . get ( package_name , None ) ) : django . template . add_to_builtins ( package_name )
registers a template extension module to make it usable in templates .