including mellon's urls when it's enabled

This commit is contained in:
Serghei Mihai 2014-11-24 17:08:37 +01:00
parent 10e8bff81c
commit 3a44ae35fc
1 changed files with 5 additions and 0 deletions

View File

@ -19,3 +19,8 @@ urlpatterns = patterns('',
url(r'^accounts/logout', 'django.contrib.auth.views.logout',
{'next_page': '/'}, name='logout'),
)
if 'mellon' in settings.INSTALLED_APPS:
urlpatterns += patterns('',
url(r'^accounts/mellon', include('mellon.urls')),
)