Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactorise les URL munin #6296

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions zds/munin/urls.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from django.urls import re_path
from django.urls import path

from zds.munin.views import total_topics, total_posts, total_mps, total_tutorials, total_articles, total_opinions


urlpatterns = [
re_path(r"^total_topics/$", total_topics, name="total_topics"),
re_path(r"^total_posts/$", total_posts, name="total_posts"),
re_path(r"^total_mps/$", total_mps, name="total_mp"),
re_path(r"^total_tutorials/$", total_tutorials, name="total_tutorial"),
re_path(r"^total_articles/$", total_articles, name="total_articles"),
re_path(r"^total_opinions/$", total_opinions, name="total_opinions"),
path("total_topics/", total_topics, name="total_topics"),
path("total_posts/", total_posts, name="total_posts"),
path("total_mps/", total_mps, name="total_mp"),
path("total_tutorials/", total_tutorials, name="total_tutorial"),
path("total_articles/", total_articles, name="total_articles"),
path("total_opinions/", total_opinions, name="total_opinions"),
]
2 changes: 1 addition & 1 deletion zds/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def location(self, item):
re_path(r"^pages/", include(("zds.pages.urls", ""))),
path("galerie/", include("zds.gallery.urls")),
re_path(r"^rechercher/", include(("zds.searchv2.urls", "zds.searchv2"), namespace="search")),
re_path(r"^munin/", include(("zds.munin.urls", ""))),
path("munin/", include(("zds.munin.urls", ""))),
path("mise-en-avant/", include("zds.featured.urls")),
re_path(r"^notifications/", include(("zds.notification.urls", ""))),
path("", include(("social_django.urls", "social_django"), namespace="social")),
Expand Down