From f4a01d43dcf0aec455aacf016103a87af5660f98 Mon Sep 17 00:00:00 2001 From: harini-venkataraman <115449948+harini-venkataraman@users.noreply.github.com> Date: Wed, 17 Jul 2024 10:35:30 +0530 Subject: [PATCH] [FIX] Extrracting Public Share URL in separate block (#492) Fixing import issues --- backend/backend/public_urls.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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}/",