No debug toolbar in the development mode

711 views
Skip to first unread message

Andris

unread,
Sep 9, 2011, 3:01:34 AM9/9/11
to pylons-discuss
Hello,
I am reading the narrative documentation v1.2 and performing the
required actions but only with partial success.

Debian 6 (stable - amd64)
Python 2.6.6
pyramid-1.2a6
pyramid_debugtoolbar-0.9.2

According to the documentation's chapter "Creating a Pyramid Project"
~/env26$ bin/paster create -t pyramid_starter test1
~/env26$ cd test1
~/env26/test1$ ../bin/python setup.py develop
~/env26/test1$ ../bin/paster serve development.ini
Starting server in PID 31803.
serving on 0.0.0.0:6543 view at http://127.0.0.1:6543

Everything seems ok in the console - no warnings, no errors. I even
have set the log level for the console to DEBUG, but nothing there. As
I just only started to examine the Pyramid project, I have no clue
where to look futher, in order to find the cause of my problem - there
is no debug toolbar image (“^DT”) on the right hand side of the web
page.

Thanks for your help in advance
Andris :)

Chris McDonough

unread,
Sep 9, 2011, 3:05:18 AM9/9/11
to pylons-...@googlegroups.com

The toolbar will only show when it is accessed from 127.0.0.1
(localhost). See the documentation for the toolbar at
https://docs.pylonsproject.org/projects/pyramid_debugtoolbar/dev/#settings (debugtoolbar.hosts) to add an exception for your remote IP address.

- C


Andris

unread,
Sep 9, 2011, 6:33:18 AM9/9/11
to pylons-discuss
Yes, you are correct. Now I see the debug toolbar:

debugtoolbar.hosts = 192.168.0.5

As I thought, something trivial!

Thanks,
Andris :)

On 9 sept., 10:05, Chris McDonough <chr...@plope.com> wrote:
> On Fri, 2011-09-09 at 00:01 -0700, Andris wrote:
> > Hello,
> > I am reading the narrative documentation v1.2 and performing the
> > required actions but only with partial success.
>
> > Debian 6 (stable - amd64)
> > Python 2.6.6
> > pyramid-1.2a6
> > pyramid_debugtoolbar-0.9.2
>
> > According to the documentation's chapter "Creating a Pyramid Project"
> > ~/env26$ bin/paster create -t pyramid_starter test1
> > ~/env26$ cd test1
> > ~/env26/test1$ ../bin/python setup.py develop
> > ~/env26/test1$ ../bin/paster serve development.ini
> > Starting server in PID 31803.
> > serving on 0.0.0.0:6543 view athttp://127.0.0.1:6543
>
> > Everything seems ok in the console - no warnings, no errors. I even
> > have set the log level for the console to DEBUG, but nothing there. As
> > I just only started to examine the Pyramid project, I have no clue
> > where to look futher, in order to find the cause of my problem - there
> > is no debug toolbar image (“^DT”) on the right hand side of the web
> > page.
>
> The toolbar will only show when it is accessed from 127.0.0.1
> (localhost).  See the documentation for the toolbar athttps://docs.pylonsproject.org/projects/pyramid_debugtoolbar/dev/#set...(debugtoolbar.hosts) to add an exception for your remote IP address.
>
> - C

Chee-Chan Keng

unread,
Feb 11, 2012, 10:33:30 AM2/11/12
to pylons-...@googlegroups.com
Hi,
I have a similar issue, here's my situation:
VMware machine hosting pyramid: 192.168.88.136
Host machine running the browser that points to the virtual machine: 192.168.0.104

Which file should I actually edit to add this exception? development.ini? and where to create the [app] section?

Chris McDonough

unread,
Feb 11, 2012, 10:42:42 AM2/11/12
to pylons-...@googlegroups.com

There's already an [app:foo] section in the development.ini. Just put
this inside it:

debugtoolbar.hosts = 192.168.0.104

http://docs.pylonsproject.org/projects/pyramid_debugtoolbar/en/latest/#settings

- C


Chee-Chan Keng

unread,
Feb 11, 2012, 11:17:28 AM2/11/12
to pylons-...@googlegroups.com
I figured out my problem, network in this VMware was using NAT, so it sees the host as the gateway IP: 192.168.88.1

The correct IP for me:
debugtoolbar.hosts = 192.168.88.1

Reply all
Reply to author
Forward
0 new messages