def _email_url_parser(url_name, extra_param=None):
 site_name = configuration_helpers.get_value('SITE_NAME', settings.SITE_NAME)
 dashboard_url_path = ((reverse(url_name) + extra_param) if extra_param else reverse(url_name))
 dashboard_link_parts = ('https', site_name, dashboard_url_path, '', '', '')
 return urlparse.urlunparse(dashboard_link_parts)

def _email_url_parser ( url_name , extra_param = None ) : site_name = configuration_helpers . get_value ( 'SITE_NAME' , settings . SITE_NAME ) dashboard_url_path = ( ( reverse ( url_name ) + extra_param ) if extra_param else reverse ( url_name ) ) dashboard_link_parts = ( 'https' , site_name , dashboard_url_path , '' , '' , '' ) return urlparse . urlunparse ( dashboard_link_parts )
parse url according to site_name which will be used in the mail .