adspace


How you can write a view in django?

Answer Posted / Kalpana Verma

In Django, views are defined as functions or classes inside an application's views.py file. The simplest view function looks like this: nn```pythonndef home(request):n return render(request, 'home.html')```

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category