I am using Django 1.11. I am trying to get url pattern to match uuid but it does not work. I have tried more than 3 times but I am still getting error :
Using the URLconf defined in eMarket.urls, Django tried these URL patterns, in this order:
http://127.0.0.1:8000/view/49c26740-2211-4cc9-971b-5ff62ddc2e0e/
urlpatterns = [
url(r'^view/(?P<slug>\b[0-9A-Fa-f]{8}\b(-\b[0-9A-Fa-f]{4}\b){3}-\b[0-9A-Fa-f]{12}\b)$', viewProduct, name="view"),
url('admin/', admin.site.urls),
]


\belements doing in there?...)/?$. Also, word boundaries (\b) are safe to remove.