print(topic idtopic chess rock climbing we store the queryset in topicsand then print each topic' id attribute and the string representation of each topic we can see that chess has an id of and rock climbing has an id of if you know the id of particular objectyou can get that object and examine any attribute the object has let' look at the text and date_added values for chesst topic objects get(id= text 'chesst date_added datetime datetime( tzinfo=we can also look at the entries related to certain topic earlier we defined the topic attribute for the entry model this was foreignkeya connection between each entry and topic django can use this connection to get every entry related to certain topiclike thisu entry_set all([<entryin the opening phase of the gameit' important >to get data through foreign key relationshipyou use the lowercase name of the related model followed by an underscore and the word set for examplesay you have the models pizza and toppingand topping is related to pizza through foreign key if your object is called my_pizzarepresenting single pizzayou can get all of the pizza' toppings using the code my_pizza topping_set all(we'll use this kind of syntax when we begin to code the pages users can request the shell is very useful for making sure your code retrieves the data you want it to if your code works as you expect it to in the shellyou can expect it to work properly in the files you write within your project if your code generates errors or doesn' retrieve the data you expect it toit' much easier to troubleshoot your code in the simple shell environment than it is within the files that generate web pages we won' refer to the shell muchbut you should continue using it to practice working with django' syntax for accessing the data stored in the project note each time you modify your modelsyou'll need to restart the shell to see the effects of those changes to exit shell sessionenter ctrl-don windows enter ctrl- and then press enter getting started with django