Skip to content

Commit

Permalink
control service of wagtail pages via waffle flag
Browse files Browse the repository at this point in the history
  • Loading branch information
escattone committed May 22, 2024
1 parent 107a484 commit 52bab0a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kitsune/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
from django.views.generic.base import RedirectView
from django.views.static import serve as servestatic
from graphene_django.views import GraphQLView
from waffle.decorators import waffle_flag
from waffle.views import wafflejs
from wagtail.urls import serve_pattern
import wagtail.views

from kitsune.dashboards.api import WikiMetricList
from kitsune.sumo import views as sumo_views
Expand Down Expand Up @@ -42,6 +45,11 @@
path("", include("kitsune.users.urls")),
path("locales", sumo_views.locales, name="sumo.locales"),
re_path(r"^windows7-support(?:\\/)?$", RedirectView.as_view(url="/home/?as=u")),
re_path(
rf"wagtail/{serve_pattern.lstrip('^')}",
waffle_flag("wagtail_experiments")(wagtail.views.serve),
name="wagtail_serve",
),
)

if settings.OIDC_ENABLE:
Expand Down

0 comments on commit 52bab0a

Please sign in to comment.