[Django]-Django – pass js variable to django view

3👍

First add a name attribute to your search input. Let’s say you called it searchTextField like the id. Then you can do request.POST.get('searchTextField').

Leave a comment