Here is my problem :
Using the URLconf defined in Rase.urls, Django tried these URL patterns, in this order:
admin/
[name='index']
bio/<slug:username>/$ [name='bio']
The current path, bio/bussiere/, didn't match any of these.
the url is :
http://localhost:8000/bio/bussiere/
here is my url file :
from django.urls import include, path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path("bio/<slug:username>/$", views.bio, name='bio'),
]
If you have any idea ?
Thanks and regards
url(..)instead ofpath(..)when specifying the url. As a result, it takes<slug:...as *lterally part of the URL, not as meta-data. Can you share theurlpatterns?$at the end$since that is a regex anchor, not a path specifier (or you should add a$to your URL :)