You should be able to do that by using a relative path instead of the 
absolute "/execute". Just use something like href="{% url 'execute' 'SQL' 
%}. For this to work you need to name the url path as 'execute'. That way 
you'll pass the 'SQL' value to the endpoint.
Here is example from the polls tutorial: 
https://docs.djangoproject.com/en/3.0/intro/tutorial03/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/67447115-2534-420f-a433-672cd644d1b1%40googlegroups.com.

Reply via email to