I want solution for how Django URL work without any optional parameter or with optional parameter.
Here is the URL structure that I want:
path('<slug:category_slug>-comparison/<slug:brand_slug1>-vs-<slug:brand_slug2>-vs-<slug:brand_slug3>/',views.compare_brand)
Now I want something like 1st two slugs for comparison is compulsory so, as per the above URL
path('<slug:category_slug>-comparison/<slug:brand_slug1>-vs-<slug:brand_slug2>',views.compare_brand)
This is working fine because this are compulsory url parameter but I want to pass optional url from 2nd 'vs' to brand_slug3.
Can anyone help me in this?