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 3312684
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:01:28+00:00 2026-05-17T22:01:28+00:00

This is such a basic issue that I can only assume I’m looking at

  • 0

This is such a basic issue that I can only assume I’m looking at it completely the wrong way but…

I’m new enough to Django and I’ve taken the responsibility of redesigning a django application. The functionality is pretty good but the layout of things need to be styled and displayed a bit better.

My problem is this.

If in designing templates for for a PHP application and I want to see what attributes each of my objects have I can do a print_r (or a prettier inequivalent) and see exactly what data I can play with.

In django from the template level this doesn’t appear to be possible which is baffling to me. Surely the idea of seperating design from business logic etc with MVC should also extend to have different people working on each level. If that is the case the a design person should have a way to display all variables available?

  • 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-05-17T22:01:28+00:00Added an answer on May 17, 2026 at 10:01 pm

    Use the django debug toolbar: http://github.com/robhudson/django-debug-toolbar

    It requires minimal configuration after you install it and it will show you all kinds of useful information including the context for all the templates that were rendered, which is what you need.

    To install it, in settings.py you put 'debug_toolbar', in INSTALLED_APPS and then add the following setting:

    DEBUG_TOOLBAR_CONFIG = {
        'INTERCEPT_REDIRECTS': False,
        'SHOW_TOOLBAR_CALLBACK': lambda request: return DEBUG,
    }
    

    See the documentation for more details.

    Once it is installed you should see a little tab DJDT on the right-hand side of your page. Clicking on it opens the toolbar and the template information is under Templates.

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

Sidebar

Related Questions

This seems like such a trivial problem, but I can't seem to pin how
I want to be able to have a Stored Procedure that can only be
I may be mistaken, but the basic explanation I've found has been that the
If I had some XML such as this loaded into an XDocument object: <Root>
This is related to some other questions, such as: this , and some of
Are declaring custom .NET event such as this , more common in a winform
I'd like to take a string such as this: [One, Two[A, B[i, ii, iii,
Is there any reason why XML such as this : <person> <firstname>Joe</firstname> <lastname>Plumber</lastname> </person>
Greetings! If I have XML such as this: <Root> <AlphaSection> . . . </AlphaSection>
There are a few questions about configuring Apache for local development, such as this

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.