app url

3.7. Exercises

Congratulations! You have got Rango up and running. This is a significant landmark in working with Django. Creating views and mapping URLs to views is the first step towards developing more complex and usable web applications. Now try the following exercises to reinforce what you’ve learnt.

  • Revise the procedure and make sure you follow how the URLs are mapped to views.
  • Next create a new view called about page - which returns the following: "Rango Says: Here is the about page."
  • Now map the this view to /rango/about/ . Note you will only have to edit the urls.py of the rango application.
  • Revise the HttpResponse in the index view to include a link to the about page.
  • In the HttpResponse in the about view include a link back to the main page.
  • If you haven’t done so already, it is a good point to go off an complete part one of the official Django Tutorial .

results for ""

    No results matching ""