From f2ce60dd3d90c4e92ad9e3b8c60f6635e6eb7394 Mon Sep 17 00:00:00 2001 From: Maxime Bombar Date: Fri, 3 Aug 2018 09:45:34 +0200 Subject: [PATCH] [Printer] Move printer urlpatterns into optional urls --- re2o/urls.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/re2o/urls.py b/re2o/urls.py index 7ce07a22..f97307a0 100644 --- a/re2o/urls.py +++ b/re2o/urls.py @@ -73,7 +73,6 @@ urlpatterns = [ r'^preferences/', include('preferences.urls', namespace='preferences') ), - url(r'^printer/', include('printer.urls', namespace='printer')), ] # Add debug_toolbar URLs if activated if 'debug_toolbar' in settings.INSTALLED_APPS: @@ -85,3 +84,8 @@ if 'api' in settings.INSTALLED_APPS: urlpatterns += [ url(r'^api/', include('api.urls', namespace='api')), ] + +if 'printer' in settings.INSTALLED_APPS: + urlpatterns += [ + url(r'^printer/', include('printer.urls', namespace='printer')), + ]