With a little bit of style in debug.html, I think this kind of thing could
be added to layout.html of welcome. this is very usefull.
May be included as a toggle sidebar, or topbar
2010/11/17 Bruno Rocha
> Nice!
>
> I put this in the end of layout.html
>
>
>
>
> {{if DEBUG_MODE:}}
>
>
Nice!
I put this in the end of layout.html
{{if DEBUG_MODE:}}
{{include 'debug.html'}}
{{pass}}
and in my models/0.py
if 'debug_mode' in request.args:
DEBUG_MODE = True
or
if request.env.http_host == '127.0.0.1':
DEBUG_MODE = True
or just DEBUG_MODE = True
Very usef
Hi, I've realized that it might be helpful, to include a template
called "debug.html" with the same code found in "generic.html." but
without the {{extend}} statement. I am using in my development and
saves me some time to write several "BEAUTIFY" calls.
When I want to be in "development mode", I
3 matches
Mail list logo