from django.conf.urls.defaults import patterns, url, include

from django.conf import settings

urlpatterns = patterns('librement.debug.views',
)

if settings.DEBUG:
    urlpatterns += patterns('django.views.static',
        url(r'^media/(?P<path>.*)$', 'serve',
            {'document_root': settings.STATIC_MEDIA_ROOT}),
        (r'^(?P<path>favicon\.ico|robots\.txt)$', 'serve',
            {'document_root': settings.STATIC_MEDIA_ROOT}),
    )

    urlpatterns += patterns('librement.debug.views',
        url(r'^(?P<code>404|500)$', 'error'),
    )

from django.conf.urls.defaults import patterns, url, include

from django.conf import settings

urlpatterns = patterns('librement.debug.views',
)

if settings.DEBUG:
    urlpatterns += patterns('django.views.static',
        url(r'^media/(?P<path>.*)$', 'serve',
            {'document_root': settings.STATIC_MEDIA_ROOT}),
        (r'^(?P<path>favicon\.ico|robots\.txt)$', 'serve',
            {'document_root': settings.STATIC_MEDIA_ROOT}),
    )

    urlpatterns += patterns('librement.debug.views',
        url(r'^(?P<code>404|500)$', 'error'),
    )

    urlpatterns += patterns('',
        url(r'', include('debug_toolbar_user_panel.urls')),
    )

Enable the user panel properly.
Enable the user panel properly.

Signed-off-by: Chris Lamb <29e6d179a8d73471df7861382db6dd7e64138033@debian.org>
