Skip to content

Commit

Permalink
🐛 import blog urls earlier for api route registering
Browse files Browse the repository at this point in the history
ruff re-ordered these
  • Loading branch information
krmax44 committed Sep 18, 2024
1 parent 55fde96 commit a899993
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fragdenstaat_de/theme/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.conf import settings
from django.conf import settings # noqa: I001
from django.conf.urls.i18n import i18n_patterns
from django.contrib.sitemaps import views as sitemaps_views
from django.urls import include, path
Expand All @@ -10,6 +10,7 @@
# Import early to register with api_router
from froide_campaign import urls as campaign_urls
from froide_govplan.admin import govplan_admin_site
import fragdenstaat_de.fds_blog.urls # noqa

from froide.urls import (
admin_urls,
Expand All @@ -18,8 +19,6 @@
jurisdiction_urls,
sitemaps,
)

import fragdenstaat_de.fds_blog.urls # noqa
from fragdenstaat_de.fds_blog.sitemaps import BlogSitemap, NewsSitemap
from fragdenstaat_de.fds_cms.sitemaps import FdsCMSSitemap
from fragdenstaat_de.fds_newsletter.views import legacy_unsubscribe
Expand Down Expand Up @@ -100,6 +99,8 @@
path("", include("filer.server.urls")),
]

print("saved")
print(api_urlpatterns[2].reverse_dict.keys())
urlpatterns += api_urlpatterns
urlpatterns += sitemap_urlpatterns

Expand Down

0 comments on commit a899993

Please sign in to comment.