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

wrong URL for view function

2019-07-09 Thread johnf
Hi, In my app folder I have a view.py which contains a function "def get_courts(pkid)" In my app folder url.py I have :  path('/get_courts/', views.get_courts, name = 'reg4_getcourts') In my app ->template->html file I have: function countySelected(){     var countyId = $("select[name=C