def disqus_dev(context):
    """
    Return the HTML/js code to enable DISQUS comments on a local
    development server if settings.DEBUG is True.
    """

    if settings.DEBUG:
        disqus_url = '//{}{}'.format(
            Site.objects.get_current().domain,
            context['request'].path
        )

        return {'disqus_url': disqus_url}

    return {}
def disqus_dev ( context ) : if settings . DEBUG : disqus_url = '//{}{}' . format ( Site . objects . get_current ( ) . domain , context [ 'request' ] . path ) return { 'disqus_url' : disqus_url } return { }
Return the HTML/js code to enable DISQUS comments on a local
    development server if settings.DEBUG is True.