I have a URL pattern setup like this:

from django.urls import include, re_path
from . import views

app_name = 'devices'
urlpatterns = [
    re_path(r'^show/(?P<asset_tag>[\w@./#&+-]+)$', views.show_device,
name='show'),
    re_path(r'^depot/(?P<asset_tag>[\w@./#&+-]+)$', views.depot_device,
name='depot'),


But when the system sends in a URL like:

*devices/show/a100038596*

I get NoReverseMatch on the pattern above (which works for other URLs in
the system, so just changing it doesn't work.)

Can you provide an additional pattern that will work for this? Thanks.

Mark McWiggins
425-369-8286 (cell)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACUnj0fybEnu8%3DbCLeiHxsH3g5bzbfq9%2Bds3pmeeggQOG%3DCvfA%40mail.gmail.com.

Reply via email to