I think this is probably something very simple, but I can't figure out for the life of me why these urls aren't matching.
My template code looks like this:
<form action="{% url 'view_record' "facility_report" %}" method="post">
{% csrf_token %}
{{ form }}
<input type="submit" value="View Report" name='view' label="Submit"> </form>
The url is then supposed to match this line in my url conf:
url(r'^view_record/((?P<report_type>.+)/)?$', views.view_record, name='view_record'),
What am I missing here? They simply won't match and most of the other questions regarding this are from five years ago when the engine seems to have been a lot more picky with formatting.
Exception Type: NoReverseMatch at /view_record/
Exception Value: Reverse for 'view_record' with arguments '('facility_report',)' and keyword arguments '{}' not found. 1 pattern(s) tried: ['view_record/((?P<report_type>(.*))/)?$']