예제 #1
0
def models(request):
    """
    Lists the models that the user has in their project
    """
    config = Mantra.get_config()

    context = {
        "project_name": config["project_name"],
        "models": Mantra.get_models(limit=False)
    }

    return render(request, "models.html", context)
예제 #2
0
def index(request):
    """
    Landing page for the Mantra UI
    """
    config = Mantra.get_config()

    context = {
        "project_name": config["project_name"],
        "models": Mantra.get_models(),
        "datasets": Mantra.get_datasets(),
    }

    return render(request, "index.html", context)