Première version affichage des vhcs

This commit is contained in:
Ambulance Clerc
2022-11-09 18:07:18 +01:00
parent 0e8f4ab529
commit 5c52baa2cd
11 changed files with 77 additions and 6 deletions

View File

@@ -1,3 +1,17 @@
from django.http import HttpResponse
from django.http import FileResponse
from django.shortcuts import render
from django.views import generic
from django.template import loader
from django.views.decorators.clickjacking import xframe_options_exempt
# Create your views here.
from vehicles.models import *
@xframe_options_exempt
def view_vhc(request):
template = loader.get_template("vhc/vhc.html")
context = {'list_vhc': Vehicles.objects.all()}
print("passs 1 ligne 12")
return HttpResponse(template.render(context,request))