Note that there are some explanatory texts on larger screens.

plurals
  1. POForgot Password function, django
    text
    copied!<p>I followed the code here: <a href="http://drumcoder.co.uk/blog/2010/apr/09/django-reset-password/" rel="nofollow">http://drumcoder.co.uk/blog/2010/apr/09/django-reset-password/</a> as well as here: <a href="http://shrenikp.webs.com/apps/blog/entries/show/7133721-implement-forgot-password-on-customer-ui-" rel="nofollow">http://shrenikp.webs.com/apps/blog/entries/show/7133721-implement-forgot-password-on-customer-ui-</a> and here: <a href="http://blog.montylounge.com/2009/07/12/django-forgot-password/" rel="nofollow">http://blog.montylounge.com/2009/07/12/django-forgot-password/</a></p> <p>This is the code I currently wish to work with and what I have it at currently</p> <p><strong>[base.html]</strong></p> <pre><code> &lt;form name="login_form" action="/login/" method="post" accept-charset="utf-8" style="display: inline"&gt; {% csrf_token %} Username: &lt;input type="text" name="username" value="" /&gt;&lt;br /&gt; Password: &lt;input type="password" name="password" value="" /&gt;&lt;br /&gt; &lt;input type="submit" value="submit" value = "" id ="submit" /&gt; &lt;p&gt;&lt;a href="{% url password_reset %}"&gt;Forgot password?&lt;/a&gt;&lt;/p&gt; &lt;/form&gt; </code></pre> <p><strong>[url.py]</strong></p> <pre><code>urlpatterns = patterns('', url(r'^password_reset/$', 'django.contrib.auth.views.password_reset', name='password_reset'), (r'^password_reset/done/$', 'django.contrib.auth.views.password_reset_done'), (r'^reset/(?P[0-9A-Za-z]+)-(?P.+)/$', 'django.contrib.auth.views.password_reset_confirm'), (r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete'), ) </code></pre> <p>I get an error something like this:</p> <pre><code>unknown specifier: ?P[ </code></pre> <p>this line error for some reason... (r'^reset/(?P[0-9A-Za-z]+)-(?P.+)/$' any help?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload