Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Inheriting Templates > Creating the User Template

Creating the User Template

In the user template, we just want to display the message we created in the user_page view. That message indicates whether the user is a registered user, based on the username.

If the username, as given in the URL that the user enters, is found in the database, the user template will welcome the user by name. If the username is not among the registered users, the message displayed by the template will inform the user that he or she is not a registered user.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint