you can do url reverse lookup, to pass the proper url
path: "{% url get_server_info %}"