def show_toolbar(request):
    """Prevent DjDT from appearing in Django-CMS admin page iframes"""
    path = request.get_full_path()

    if 'cms/' in path or 'admin/' in path:
        return False

    return True