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)
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)