[highly recommended] Re: display module and template names in templates

2009-08-10 Thread Mike Dewhirst

Mike Ramirez wrote:
> On Monday 10 August 2009 08:47:57 pm Mike Dewhirst wrote:
>> If DEBUG is True I would like to include view.__name__ and the template
>> filename somewhere in the rendered page.
>>
>> It would be nice to adjust the {% block title %} so the information
>> appears in the top of the browser window-frame so it didn't upset an
>> page layout stuff.
>>
>> Is there a reasonable way to do this?
>>
>> Thanks for any pointers.
>>
>> Mike
>>
> 
> I use the django debug toolbar for a lot of this info, been awhile since I 
> used it and I can't remember if the view function name is displayed but you 
> can be sure the matching view function is called for the url in question, I 
> usually keep the urls.py open when I'm working on a project/app.

Mike - And Rob Hudson if you are listening :)

That is a great piece of kit. I have commented out all panels except 
Header, RequestVars and Template for the time being and that tells me 
most of what I want to know.

I think you're right that having the urls.py open too covers the rest of it.

Wonderful :)

Thanks

Mike

> 
> 
> http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/
> 
> Mike
> 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: display module and template names in templates

2009-08-10 Thread Mike Ramirez
On Monday 10 August 2009 08:47:57 pm Mike Dewhirst wrote:
> If DEBUG is True I would like to include view.__name__ and the template
> filename somewhere in the rendered page.
>
> It would be nice to adjust the {% block title %} so the information
> appears in the top of the browser window-frame so it didn't upset an
> page layout stuff.
>
> Is there a reasonable way to do this?
>
> Thanks for any pointers.
>
> Mike
>

I use the django debug toolbar for a lot of this info, been awhile since I 
used it and I can't remember if the view function name is displayed but you 
can be sure the matching view function is called for the url in question, I 
usually keep the urls.py open when I'm working on a project/app.


http://rob.cogit8.org/blog/2008/Sep/19/introducing-django-debug-toolbar/

Mike

-- 
Why was I born with such contemporaries?
-- Oscar Wilde


signature.asc
Description: This is a digitally signed message part.


display module and template names in templates

2009-08-10 Thread Mike Dewhirst

If DEBUG is True I would like to include view.__name__ and the template 
filename somewhere in the rendered page.

It would be nice to adjust the {% block title %} so the information 
appears in the top of the browser window-frame so it didn't upset an 
page layout stuff.

Is there a reasonable way to do this?

Thanks for any pointers.

Mike

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---