I am getting the error mentioned in the heading. The reverse url is working
perfectly everywhere in the html code except in the form action part. The
code works perfectly when I do not use namespaces in my project which right
now has only one app. Example: {% url 'view_name' %} instead of {% url
'app_name:view_name' %} )
*urls.py*
from django.conf.urls import url, includefrom django.contrib import adminfrom
account import viewsfrom django.core.urlresolvers import reverse
app_name = 'account'
urlpatterns = [
#url(r'^admin/', admin.site.urls),
url(r'^$', views.login, name='login' ),
url(r'^login/$', views.login, name='login'),
url(r'^forgotPassword/$', views.forgotPassword, name='forgotPassword'),
url(r'^resetPasswordSendMail/$', views.resetPasswordSendMail,
name='resetPasswordSendMail'),]
I am getting the error mentioned in the heading. The reverse url is working
perfectly everywhere in the html code except in the form action part. The code
works perfectly when I do not use namespaces in my project which right now has
only one app. Example: {% url 'view_name' %} instead of {% url
'app_name:view_name' %} )
*urls.py*
from django.conf.urls import url, includefrom django.contrib import adminfrom
account import viewsfrom django.core.urlresolvers import reverse
app_name = 'account'
urlpatterns = [
#url(r'^admin/', admin.site.urls),
url(r'^$', views.login, name='login' ),
url(r'^login/$', views.login, name='login'),
url(r'^forgotPassword/$', views.forgotPassword, name='forgotPassword'),
url(r'^resetPasswordSendMail/$', views.resetPasswordSendMail,
name='resetPasswordSendMail'),]
*ForgotPassword.html*
<form method="POST" role="form" id="forgotPassword" action="{% url
'account:resetPasswordSendMail' %}"> {% csrf_token %}
*Views.py*
def resetPasswordSendMail(request):
# code follows....
--
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 [email protected].
To post to this group, send email to [email protected].
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/54a41772-4ddd-4404-b2b1-90d6a2bae972%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.