My public template grabs data from Postgres to a drop down menu. The template displays the data in the drop down menu. When the selection is activated the following error occurs:
commodity() takes exactly 2 arguments (1 given)
The template code, views and URL are here:
Thank you for all the help. At least the original error doesn’t occur, but neither of the regular expressions worked. The error I received is now this:
The current URL, fsafety/commodity/, didn’t match any of these. The these is this: ^fsafety/ ^commodity/(?P\d+)$
At least I know now, that the error is in the URL, but could it also be possible that the ID is not being passed from the form? The data doesn’t present until after this statement in the form:
{% for commodity in commodity_list %}
Thank you, again!!
Ana