I just do the following. At the end of your settings.py add this:

if LOCAL_DEV:
    INTERNAL_IPS = ('127.0.0.1',)
    INSTALLED_APPS += (
        'debug_toolbar',
        'django_extensions',
    )
    MIDDLEWARE_CLASSES += (
        'debug_toolbar.middleware.DebugToolbarMiddleware',
    )
    DEBUG_TOOLBAR_CONFIG = {
        'INTERCEPT_REDIRECTS' : False,
    }

Remove the django_extensions line if you don't use that but that turns
the debug toolbar on in Satchmo for every version I've used it with
for the past year or so.


On May 14, 7:27 am, Martin Tiršel <[email protected]> wrote:
> Hello,
>
> I installed django-debug-toolbar but it is not working with Satchmo. Does  
> anybody have similar problem? It is not being displayed only in satchmo  
> views but when I create custom views, then it is ok.
>
> This is working for /mypage url:
>
>  from django.conf.urls.defaults import *
>  from satchmo_store.urls import urlpatterns as satchmo_urlpatterns
>
> # Static pages
> urlpatterns = patterns('tkshop.static_content.views',
>      url(
>          r'mypage',
>          'mypage',
>          name='static_mypage'
>      ),
> )
>
> urlpatterns += satchmo_urlpatterns
>
> But when I open satchmo URL (e.g. /category/some-category-name/), I get no  
> toolbar.
>
> Satchmo version: 0.9.2-pre hg-2181:3126f1733ad4
> Django version: 1.2.5
> Debug toolbar version: 0.8.5
>
> MIDDLEWARE_CLASSES = (
>      "django.middleware.common.CommonMiddleware",
>      "django.contrib.sessions.middleware.SessionMiddleware",
>      'debug_toolbar.middleware.DebugToolbarMiddleware',
>      "django.middleware.csrf.CsrfViewMiddleware",
>      "django.middleware.locale.LocaleMiddleware",
>      "django.contrib.auth.middleware.AuthenticationMiddleware",
>      "django.middleware.doc.XViewMiddleware",
>      "django.contrib.messages.middleware.MessageMiddleware",
>      "threaded_multihost.middleware.ThreadLocalMiddleware",
>      "satchmo_store.shop.SSLMiddleware.SSLRedirect",
>      #"satchmo_ext.recentlist.middleware.RecentProductMiddleware",
> )
>
> INSTALLED_APPS = (
>      'django.contrib.sites',
>      'debug_toolbar',
>      'satchmo_store.shop',
>      'django.contrib.admin',
> ...
>
> Regards,
> Martin

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to