currently working on the search function for project 1. I've updated layout.html, urls.py, and views.py, but when I input anything into the search bar layout.html does not pass the POST information to views.py, instead outputting this URL
and None as the page content.
If I type the URL in manually, (http://127.0.0.1:8000/search?q=CSS) or (http://127.0.0.1:8000/search?q=C) for example, everything works as intended, as it will either redirect me to the existing page or generate a list of potential matching pages.
Can anyone take a look at my code and see how I can fix my code so that layout.html sends the POST information correctly?