How you can write a view in django?



How you can write a view in django?..

Answer / 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

More Django Python Interview Questions

Can i use django apis in mobile application development ?

1 Answers  


Why django ? What is advantages of Django ?

1 Answers  


What is a form in django?

1 Answers  


How does django integrate with angularjs?

1 Answers  


How can you customize the functionality of the django admin interface?

1 Answers  


Is django unchained accurate?

1 Answers  


Is django full stack?

1 Answers  


Is django still relevant 2019?

1 Answers  


Discuss django architecture.

3 Answers  


Is django better than node?

1 Answers  


Is django in the hateful eight?

1 Answers  


What is the lambda operator ?

1 Answers  


Categories