extensions-website/ratings/urls.py

18 lines
478 B
Python

from django.urls import path, re_path, include
from . import views
from constants.base import EXTENSION_SLUGS_PATH
app_name = 'ratings'
urlpatterns = [
re_path(
rf'^(?P<type_slug>(?:{EXTENSION_SLUGS_PATH}))/',
include(
[
path('<slug:slug>/reviews/', views.RatingsView.as_view(), name='for-extension'),
path('<slug:slug>/reviews/new/', views.AddRatingView.as_view(), name='new'),
]
),
)
]