mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-28 15:42:25 +00:00
[Printer] Move printer urlpatterns into optional urls
This commit is contained in:
parent
3468efeb9d
commit
32b668ac85
1 changed files with 5 additions and 1 deletions
|
@ -74,7 +74,6 @@ urlpatterns = [
|
||||||
r'^preferences/',
|
r'^preferences/',
|
||||||
include('preferences.urls', namespace='preferences')
|
include('preferences.urls', namespace='preferences')
|
||||||
),
|
),
|
||||||
url(r'^printer/', include('printer.urls', namespace='printer')),
|
|
||||||
]
|
]
|
||||||
# Add debug_toolbar URLs if activated
|
# Add debug_toolbar URLs if activated
|
||||||
if 'debug_toolbar' in settings.INSTALLED_APPS:
|
if 'debug_toolbar' in settings.INSTALLED_APPS:
|
||||||
|
@ -86,3 +85,8 @@ if 'api' in settings.INSTALLED_APPS:
|
||||||
urlpatterns += [
|
urlpatterns += [
|
||||||
url(r'^api/', include('api.urls', namespace='api')),
|
url(r'^api/', include('api.urls', namespace='api')),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if 'printer' in settings.INSTALLED_APPS:
|
||||||
|
urlpatterns += [
|
||||||
|
url(r'^printer/', include('printer.urls', namespace='printer')),
|
||||||
|
]
|
||||||
|
|
Loading…
Reference in a new issue