Projet

Général

Profil

0001-urls-allow-use-of-django-debug-toolbar-fixes-22945.patch

Benjamin Dauvergne, 03 avril 2018 10:49

Télécharger (826 octets)

Voir les différences:

Subject: [PATCH] urls: allow use of django-debug-toolbar (fixes #22945)

 fargo/urls.py | 6 ++++++
 1 file changed, 6 insertions(+)
fargo/urls.py
33 33
    url(r'^api/', include('fargo.oauth2.urls')),
34 34
]
35 35

  
36
if settings.DEBUG and 'debug_toolbar' in settings.INSTALLED_APPS:
37
    import debug_toolbar
38
    urlpatterns = [
39
        url(r'^__debug__/', include(debug_toolbar.urls)),
40
    ] + urlpatterns
41

  
36 42
if 'mellon' in settings.INSTALLED_APPS:
37 43
    urlpatterns.append(url(r'^accounts/mellon/', include('mellon.urls')))
38
-