Skip to content

Commit

Permalink
[FIX] Extrracting Public Share URL in separate block (#492)
Browse files Browse the repository at this point in the history
Fixing import issues
  • Loading branch information
harini-venkataraman authored Jul 17, 2024
1 parent 8e42a23 commit f4a01d4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions backend/backend/public_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}/",
Expand Down

0 comments on commit f4a01d4

Please sign in to comment.