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 

0
1 comment

Hi, please submit bug report with project example: https://youtrack.jetbrains.com/issues

0

Please sign in to leave a comment.