| 1. |
How Do You Use Views In Django? |
|
Answer» Views will TAKE REQUEST to return response. Let’s write a view in Django : “example” using TEMPLATE example.html , using the date-time module to tell us exact time of reloading the page. Let’s edit a file called view.py, and it will be inside randomsite/randomapp/ from datatime import datetime Views will take request to return response. Let’s write a view in Django : “example” using template example.html , using the date-time module to tell us exact time of reloading the page. Let’s edit a file called view.py, and it will be inside randomsite/randomapp/ from datatime import datetime |
|