> url(r'^register/(?P<student_id>[-\w]+)/$', rrs_views.rrs_register_student, 
> name="rrs_register_student"),
>

 <form action="{% url 'rrs_register_search' %}" method="post">


 def rrs_register_student(request, student_id='', section=''):


Good day, I suspect that I'm doing something wrong here. What I wanted to 
achieve is...

   - When the page is loaded, it will render a template with a form.
   - When the page is loaded while the form is submitted (if request.method 
   == 'POST'), then it will process the form.

So basically, the form action is pointing at the same view. There will be 
two different sets of commands: for get/url and for post.

Here's the error I'm getting:

NoReverseMatch 
>
> Reverse for 'rrs_register_student' with arguments '()' and keyword arguments 
> '{}' not found. 1 pattern(s) tried: ['rrs/register/(?P<student_id>[-\\w]+)/$']
>
>  
Thank you in advance.

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c50973bf-08f2-4d9b-8d94-c65008bb2628%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to