my code look like this
urls.py:
from django.urls import path
from. import views
app_name ='graduates'
urlpatterns = [
.
.
path('status_detail/<str:id>/', views.status_detail, name='status_detail'),
]
views.py:
def status_detail(request, id):
return HttpResponse(id)
then I wanna use it like this somewhere in my code
<a href=" {% url 'graduates:status_detail' graduate.id %}" class="btn text-secondary "></a>
And it works fine for strings those don't contain forward slash. But I want to pass id of student to urls that look like this A/ur4040/09, A/ur5253/09 and etc
Please help me how could I do this