Merge pull request #6223 from smithellis/wagtail-remove-waffle-urls

Remove waffle serving URL path
This commit is contained in:
Tasos Katsoulas 2024-09-23 12:25:49 +03:00 коммит произвёл GitHub
Родитель 681a46f2a3 feaf641a77
Коммит 2b5e42fd54
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 0 добавлений и 8 удалений

Просмотреть файл

@ -4,13 +4,10 @@ from django.views.decorators.csrf import csrf_exempt
from django.views.generic.base import RedirectView from django.views.generic.base import RedirectView
from django.views.static import serve as servestatic from django.views.static import serve as servestatic
from graphene_django.views import GraphQLView from graphene_django.views import GraphQLView
from waffle.decorators import waffle_flag
from waffle.views import wafflejs from waffle.views import wafflejs
from wagtail import urls as wagtail_urls from wagtail import urls as wagtail_urls
from wagtail.admin.urls import urlpatterns as wagtail_admin_urlpatterns from wagtail.admin.urls import urlpatterns as wagtail_admin_urlpatterns
from wagtail.urls import serve_pattern
from wagtail.utils.urlpatterns import decorate_urlpatterns from wagtail.utils.urlpatterns import decorate_urlpatterns
from wagtail.views import serve as wagtail_serve
from kitsune.dashboards.api import WikiMetricList from kitsune.dashboards.api import WikiMetricList
from kitsune.sumo import views as sumo_views from kitsune.sumo import views as sumo_views
@ -49,11 +46,6 @@ urlpatterns = i18n_patterns(
path("", include("kitsune.tidings.urls")), path("", include("kitsune.tidings.urls")),
path("", include("kitsune.users.urls")), path("", include("kitsune.users.urls")),
path("locales", sumo_views.locales, name="sumo.locales"), path("locales", sumo_views.locales, name="sumo.locales"),
re_path(
rf"wagtail/{serve_pattern.lstrip('^')}",
waffle_flag("wagtail_experiments")(wagtail_serve),
name="wagtail_serve",
),
) )
if settings.OIDC_ENABLE: if settings.OIDC_ENABLE: