URL with parameters does not find static files Django

I'm making a URL with parameters but it does not find the static files because it adds the name of the URL to the location of the static files, with normal urls this does not happen (I already have some pages working like this).

This is a url without parameters This is a url without parameters

This is a url with parameters This is a url with parameters

Look that add 'validador' to static file urls

This is the function:

def validador(request, id):
    context                    = {}
    context['browser_mobile']  = detect_browser_type(request.META['HTTP_USER_AGENT'])
    context['id'] = id
    return render(request, 'validador.html', context)

URLs file:

from django.urls import path


app_name='torredecontrol'
urlpatterns = [
    path('', inicio, name='inicio'),
    path('iniciativa', iniciativa, name='iniciativa'),
    path('agregar_iniciativa', agregarIniciativa, name='add_iniciativa'),
    path('validador/<int:id>', validador, name='validadores'),
Back to Top