18 lines
519 B
Python
18 lines
519 B
Python
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
|
|
|
|
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))
|