Commits

Tino de Bruijn committed 4d2dfa4

account accounts url namespace

Comments (0)

Files changed (2)

 4. Add the following to your root urls.py::
   
     # accounts
-    (r'^accounts/', include('accounts.urls')),   
+    (r'^accounts/', include('accounts.urls'), 'accounts', 'accounts'),   
    
 5. If your templates don't extend a site called "base_site.html", adjust "accounts.html" accordingly.

accounts/templates/accounts/login_form.html

         {{ form.password.errors }}
         <label for="id_password">{% trans 'Password:' %}</label> <input type="password" name="password" id="id_password" />
         <input type="hidden" name="this_is_the_login_form" value="1" />
-        <input type="hidden" name="post_data" value="{{ post_data }}" /> <span class="help"><a href="{% url django.contrib.auth.views.password_reset %}">{% trans 'I forgot my password' %}</a></span>
+        <input type="hidden" name="post_data" value="{{ post_data }}" /> <span class="help"><a href="{% url accounts:django.contrib.auth.views.password_reset %}">{% trans 'I forgot my password' %}</a></span>
     </div>
     <div class="submit-row">
         <label>&nbsp;</label><input type="submit" value="{% trans 'Log in' %}" />