Coding for UWAV - Views

Creating the apps for your website you need to have the site direct the user to certain pages. By adding what the website should do when a page is requested is stored in views. It gives a function response.
def searchpage(request):
    return HttpResponse("<h1>This is the searchpage!</h1>")
https://www.youtube.com/watch?v=nAn1KpPlN2w

Comments

Popular posts from this blog

Pyhton 3.4 - Continue

Conversations Ongoing: Valuing Modernization in Early European History

Conversations Ongoing: A Bunch of Amateurs