Skip to content

Commit

Permalink
add missing config for upgrade to 7.6
Browse files Browse the repository at this point in the history
  • Loading branch information
johnatawnclementawn committed Jun 12, 2024
1 parent 3963fa1 commit 74f887f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions arches_lingo/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@
from arches_lingo.views import ConceptTreeView

urlpatterns = [
path('', include('arches.urls')),
path("", include("arches.urls")),
path("concept_trees/", ConceptTreeView.as_view(), name="concept_trees"),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

# if settings.SHOW_LANGUAGE_SWITCH is True:
# urlpatterns = i18n_patterns(*urlpatterns)
# Only handle i18n routing in active project. This will still handle the routes provided by Arches core and Arches applications,
# but handling i18n routes in multiple places causes application errors.
if (
settings.APP_NAME != "Arches"
and settings.APP_NAME not in settings.ARCHES_APPLICATIONS
):
if settings.SHOW_LANGUAGE_SWITCH is True:
urlpatterns = i18n_patterns(*urlpatterns)

urlpatterns.append(path("i18n/", include("django.conf.urls.i18n")))

0 comments on commit 74f887f

Please sign in to comment.