This is possible without any modifications. See
http://www.djangoproject.com/documentation/templates_python/#django-core-context-processors-debug
The debug context processor is one of the default ones, so if you
haven't changed anything, it should Just Work(tm).
Malcolm
--
Despite the cost of living, have you noticed how popular it remains?
http://www.pointy-stick.com/blog/
This is possible without any modifications. See
On Fri, 2008-03-14 at 01:01 +0000, Tom Badran wrote:
> Is there anything i can check using an 'if' templatetag that reflects
> the DEBUG setting in my settings.py, and if not is there an easy way i
> can add something that adds it to all templates, without me having to
> modify all my views?
>
> Basically, im just trying to conditionally have the firebug lite
> javascript console included in my base template only when running in
> debug mode.
http://www.djangoproject.com/documentation/templates_python/#django-core-context-processors-debug
The debug context processor is one of the default ones, so if you
haven't changed anything, it should Just Work(tm).
I'd want to include back button into my web page so I need somehow to
read the value of url that I came from. This of course If django does
not provide any mechanism simplifying going back?
Do you know how to do it?
Than ks,
Gabriel
if the browser back button isn't good enough and you really have to
have a back button in the page, this will work:
<form> <input type=button value="Back" onClick="history.back()"> </form>
;o)
--
Join me: http://wiki.workalone.co.uk/
Thank me: http://www.amazon.co.uk/gp/registry/1VK42TQL7VD2F
Engage me: http://www.boldfish.co.uk/portfolio/