Les templates django partie2. Dans cette vidéo, nous montrons comment créer une variable de template sur un projet django. Nous créeons pour cela un dictionnaire python au niveau du fichier views.py dans lquel nous insérons une ou plusieurs variable. Nous récupérons ensuite les varibles au niveau du template par leurs noms entre double accolades. 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 part2. In this video, we show how to create a template variable on a django project. We create for this a python dictionary at the level of the views.py file into which we insert one or more variables. We then retrieve the variables at the template level by their names between double braces. 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.