diff --git a/backend/backend/public_urls.py b/backend/backend/public_urls.py index 5eb9ab823..017b79dce 100644 --- a/backend/backend/public_urls.py +++ b/backend/backend/public_urls.py @@ -48,12 +48,19 @@ try: import pluggable_apps.platform_admin.urls # noqa # pylint: disable=unused-import - import pluggable_apps.public_shares_share_controller.urls # noqa # pylint: disable=unused-import + + urlpatterns += [ + path(f"{path_prefix}/", include("pluggable_apps.platform_admin.urls")), + ] +except ImportError: + pass + +try: + import pluggable_apps.public_shares.share_controller.urls # noqa # pylint: disable=unused-import share_path_prefix = settings.PUBLIC_PATH_PREFIX urlpatterns += [ - path(f"{path_prefix}/", include("pluggable_apps.platform_admin.urls")), # Public Sharing path( f"{share_path_prefix}/",