def datasets(request): """ Lists the models that the user has in their project """ config = Mantra.get_config() context = { "project_name": config["project_name"], "datasets": Mantra.get_datasets(limit=False) } return render(request, "datasets.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)