@register.inclusion_tag("disqus/comment_thread.html", takes_context=True)
def disqus_comment_thread(context):    
    user = context['user']
    entity = context['entity']
    
    # add all the context needed for thread display code
    context['forum_name'] = settings.DISQUS_FORUM_NAME
    context['dev_mode'] = settings.DISQUS_DEV_MODE
    context['thread_uid'] = get_entity_thread_uid(entity)
    context['thread_ref_url'] = 'http://www.jumo.com%s' % (entity.get_url) 
    context['thread_title'] = '%s' % (entity.get_name)
    context['public_api_key'] = settings.DISQUS_PUBLIC_KEY
    context['sso_auth_msg'] = get_sso_auth( user )
    context['login_url'] = '/login?post_auth_action=close'
    context['logout_url'] = '/logout' # note, might need redirect to same page
    context['small_logo_img'] = 'favicon.png'
    context['sign_in_img'] = 'img/login.png'
    
    return context
dataset/ETHPy150Open jumoconnect/openjumo/jumodjango/etc/templatetags/disqus_tags.py/disqus_comment_thread/original