I want to create a search box in Django that is situated at the URL /search, and redirects to a friendly URL like /search/queryterm - rather than having ?q=queryterm in the URL)
So the user types in a query term, it takes them to /search/queryterm, and shows a list of results.
I can get and display the results OK given a URL like /search/queryterm.
But I don't know the best way to handle the URL redirect from the form. Should this be a redirect in pure HTML in the form (which feels slightly hacky), and if so, how can I implement this?
Or should the form POST to /search/, then ResponseRedirect to the /search/queryterm page? Wouldn't this be slower?
Thanks!