I think you need to pass the "type" and "state" values in the {% url ... %}
tag

https://docs.djangoproject.com/en/1.7/ref/templates/builtins/#url

On Sat, Oct 18, 2014 at 6:06 PM, Daniel Grace <danwgr...@gmail.com> wrote:

> Hi,
> I get the following error on one of my view forms:
> Request Method: GET
> Request URL: http://127.0.0.1:8000/test/test_type_1/test_state_1/
> Django Version: 1.7
> Exception Type: NoReverseMatch
> Exception Value:
> Reverse for 'create-flow-params' with arguments '()' and keyword arguments
> '{}' not found. 1 pattern(s) tried:
> ['test/(?P<type>\\w+)/(?P<state>\\w+)/$']
>
> The url for this view is as follows:
> url(r'^test/(?P<type>\w+)/(?P<state>\w+)/$',
> login_required(views.TestFlow.as_view(success_url="/")),
> name='create-flow-params'),
>
> The html line which the error refers to is as follows:
> <form action="{% url 'create-flow-params' %}" method="POST">
>
> I'm doing something wrong.  Any ideas?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/eb878a55-d514-4a6e-b234-8e368c07dfb3%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/eb878a55-d514-4a6e-b234-8e368c07dfb3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALn3ei2h5PG5E05cpX0zPQ5d1GvTneP_%3Dat58vy%2BJMGiyCw_Eg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to