Argument 'argument # '2'' does not exist in url regex
Hi,
I have following definition in urls.py
path('company/<slug:slug>/data/', include('data.urls'))
and have this defined in data.urls.
path('<int:data_id>/preview/', data_views.preview, name='preview'),
but when I add this url in template:
'{% url "data:preview" company.slug data.data_id %}'
PyCharm complained:
Argument 'argument # '2'' does not exist in url regex. It seems that PyCharm didn't recognize the first parameter (slug). Is there any way to fix this?
Thanks,
Sam
请先登录再写评论。
Hi, please submit bug report with project example: https://youtrack.jetbrains.com/issues