title: How to pass parameters into url after render() in Django?
body: <p>I'm trying to use <code>Google's Custom Search Engine</code> product to display results from a query on a page for a personal web app.</p>
  
  <p>How <code>CSE</code> is working is that it takes parameters from the URL as search terms: i.e., <code>www.mydomain.com/results.html?q=hello+world</code> would return results for a "hello world" query on the page. You put some <code>JS</code> code they give you on your page, so it's a bit of a black box.</p>
  
  <p>However, with <code>URL</code> <code>routing</code> and <code>render()</code> on <code>Django</code>, I'm guessing the basics is that <code>www.mydomain.com/results</code> gets routed to a <code>views.results</code> calls which <code>renders results.html</code> as <code>www.mydomain.com/results</code>.</p>
  
  <p>What is the best-practice for submitting a query through a form, and passing it to <code>www.mydomain.com/results.html?q=hello+world</code> instead of redirecting to <code>www.mydomain.com/results</code> and having <code>Django</code> render the results/html file?</p>
  
  <p>Sorry, I'm relatively new. I can try to piece things together, but I feel there has got to be a very efficient way of handling this situation. Thanks for understanding</p>