diff --git a/re2o/urls.py b/re2o/urls.py index 4ab790a4..d8bb289f 100644 --- a/re2o/urls.py +++ b/re2o/urls.py @@ -74,7 +74,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: @@ -86,3 +85,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')), + ]