Re: wrong URL for view function

2019-07-10 Thread johnf
If I add the pkid to the path it will work.  I.e. path('/get_courts/47/', views.get_courts, name="reg4_getcourts') At least my function is called.  But what I'm attempting to do is pass the pkid (in this case 47) to the function in the app->view.py from the javascript function. This use to w

Re: wrong URL for view function

2019-07-10 Thread Javier Rivera
You need to capture parameters in your path definition if they are part of the url. Something like path('/get_courts//', views.get_courts, name="reg4_getcourts') Best regards, Javier. O 10/07/19 ás 08:57, johnf escribiu: Hi, In my app folder I have a view.py which contains a function "de