I am trying to send the URL information by using the URL name and proceed them in JavaScript. So i will not set the true parameters while generating it by reverse function which trigs error because of th wrong data types:
reverse("url-name", args = ["{0}", "{1}", "{2}"]) # The first parameter should be number
Javascript:
url = url.replace("{0}", 34)\
.replace("{1}", "Cem")\
.replace("{2}", "Şebinkarahisar");
Is there any way to ignore data types while generating them in Django?
Thanks.
Have a look to django.js.
It’s an application doing what you want: