Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8260881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:12:29+00:00 2026-06-08T03:12:29+00:00

Working on learning Django, and at the moment (trying to) have a template that

  • 0

Working on learning Django, and at the moment (trying to) have a template that creates a list of “robots” that I’ve created. I’m not looking for help on the specific problem — I’m trying to figure it out by myself — but I would like to know if I can figure out where I’m failing.

The lookup looks like this. Currently, in the template, it returns nothing (and there are definitely two “robots” in the database:

<p>Robotz!</p>
    {% for bot in robots.all %}
    <p>{{bot.name}}&nbsp;//{{bot.serialnumber}}</p>
    {% endfor %}
<p>And that's a list of robots.</p>

What I don’t know is whether…
– “robots.all” is looking in the wrong place in the second line,
– “for bot in” is bad syntax in the second line,
or
– “bot.name” and “bot.serialnumber” are bad values to print in the third line.

Right now, the template returns nothing: it goes straight from “Robotz!” to “And that’s a list of robots.” on the served HTML page. Inspect Element in Chrome gives me nothing between those two lines.

Is there a way to find out what I’m doing wrong? Not specific to this instance, but so I can see whether I’m looking in the wrong place, or putting out the wrong output.

Again, I want to figure out how to do this by myself, but I’m looking for tools that can help me know where I’m screwing this up: is there something like Inspect Element that would work for Django, so I can see what lines are/aren’t seeking and returning data like I can see which CSS lines are and aren’t active using Inspect Element?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T03:12:31+00:00Added an answer on June 8, 2026 at 3:12 am

    django-debug-toolbar would help you a lot in this case. It shows you all queries that were executed. It doesn’t show you queries line by line, but it’ll give you general idea what’s happening in your application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to C# and have been working on learning database's. Currently I'm trying
I am learning Android and have been working on an application that will need
I have been working on learning the Android NDK the past few days, but
I'm working on learning Objective-C/Coaoa, but I've seem to have gotten a bit stuck
Really basic question. Learning Django and now working on development server with nginx set
I'm working on learning GWT (total newb) and have a question regarding the Visualiztion
I have been working on learning ANTLR in order to create a domain specific
I have been working on learning C++ and Qt4 recently, but I have hit
I'm working on learning ruby/rails at the moment - The book i'm reading has
I'm working on learning Windows PS - but until than I need some help

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.