- short entriesthe __str__(method in the entry model currently appends an ellipsis to every instance of entry when django shows it in the admin site or the shell add an if statement to the __str__(method that adds an ellipsis only if the entry is more than characters long use the admin site to add an entry that' fewer than characters in lengthand check that it doesn' have an ellipsis when viewed - the django apiwhen you write code to access the data in your projectyou're writing query skim through the documentation for querying your data at you see will look new to youbut it will be quite useful as you start to work on your own projects - pizzeriastart new project called pizzeria with an app called pizzas define model pizza with field called namewhich will hold name values such as hawaiian and meat lovers define model called topping with fields called pizza and name the pizza field should be foreign key to pizzaand name should be able to hold values such as pineapplecanadian baconand sausage register both models with the admin siteand use the site to enter some pizza names and toppings use the shell to explore the data you entered making pagesthe learning log home page usuallymaking web pages with django consists of three stagesdefining urlswriting viewsand writing templates firstyou must define patterns for urls url pattern describes the way the url is laid out and tells django what to look for when matching browser request with site url so it knows which page to return each url then maps to particular view--the view function retrieves and processes the data needed for that page the view function often calls templatewhich builds page that browser can read to see how this workslet' make the home page for learning log we'll define the url for the home pagewrite its view functionand create simple template because all we're doing is making sure learning log works as it' supposed towe'll keep the page simple for now functioning web app is fun to style when it' completean app that looks good but doesn' work well is pointless for nowthe home page will display only title and brief description