def home_slug():
 prefix = get_script_prefix()
 slug = reverse(u'home')
 if slug.startswith(prefix):
  slug = (u'/' + slug[len(prefix):])
 try:
  return resolve(slug).kwargs[u'slug']
 except KeyError:
  return slug

def home_slug ( ) : prefix = get_script_prefix ( ) slug = reverse ( u'home' ) if slug . startswith ( prefix ) : slug = ( u'/' + slug [ len ( prefix ) : ] ) try : return resolve ( slug ) . kwargs [ u'slug' ] except KeyError : return slug
returns the slug arg defined for the home urlpattern .