from django.shortcuts import render from django.shortcuts import get_object_or_404 from .models import Profile # Create your views here. def fiche(request,id): profile=get_object_or_404(Profile,id=id) return render(request,'fiches/fiche.html',{"profile":profile})