Les templates django. Dans cette vidéo, nous montrons comment créer et configurer un système de template sur un projet django. Nous faisons ensuite les imports nécessaires: from django.template import loader et from django.http import HttpResponse. On crée ensuite un objet template à l'aide du module loader: template = loader.get_template. On définit ensuite une méthode qui affiche les résultats sur le template: def index(request): return HttpResponse template.render. Pour un bon visionnage de la vidéo, utiliser le navigateur google chrome.Les version de Python testées pour ce tutoriel, sont Python 3.7 Windows 7, Python 3.7 Windows 8, Python 3.7 Windows 10.
The django templates. In this video, we show how to create and configure a template system on a django project. We then do the necessary imports: from django.template import loader and from django.http import HttpResponse. We then create a template object using the loader module: template = loader.get_template. We then define a method which displays the results on the template: def index (request): return HttpResponse template.render. For a good viewing of the video, use the google chrome browser. The Python versions tested for this tutorial are Python 3.7 Windows 7, Python 3.7 Windows 8, Python 3.7 Windows 10.