title: NoReverseMatch at /accounts/password_reset/
body: <p>I'm working on authentication for a Django project I'm working on. For some reasons, I'm getting the error <code>Reverse for 'password_reset_done' not found. 'password_reset_done' is not a valid view function or pattern name.</code> I put everything authentication in an <code>accounts</code> app. </p>
  
  <p>Here's the content of the base <code>urls.py</code> file:</p>
  
  <pre><code>from django.contrib import admin
  from django.urls import path, include
  from accounts import urls as accounts_urls
  from core import urls as core_urls
  from core import views
  
  urlpatterns = [
      path('admin/', admin.site.urls),
      path('', views.home, name='home'),
      path('accounts/', include(accounts_urls, namespace='accounts')),
      path('core/', include(core_urls, namespace='core')),
  ]
  </code></pre>
  
  <p>Here's the content of the <code>urls.py</code> file (in the accounts app):</p>
  
  <pre><code>from django.urls import path, reverse_lazy
  from django.contrib.auth import views as auth_views
  from . import views as accounts_views
  
  app_name = 'accounts'
  
  urlpatterns = [
      path('signup/', accounts_views.signup, name='signup'),
      path('login/', auth_views.LoginView.as_view(template_name='accounts/login.html'), name='login'),
      path('logout/', auth_views.LogoutView.as_view(), name='logout'),
      path('account_activation_sent/', accounts_views.account_activation_sent, name='account_activation_sent'),
      path('activate/&lt;uidb64&gt;/&lt;token&gt;/', accounts_views.activate, name='activate'),
      path('password_reset/', auth_views.PasswordResetView.as_view(
          template_name='accounts/password_reset.html',
          email_template_name='accounts/password_reset_email.html',
          subject_template_name='accounts/password_reset_subject.txt'
      ), name='password_reset'),
      path('password_reset/done/', auth_views.PasswordResetDoneView.as_view(
          template_name='accounts/password_reset_done.html'
      ), name='password_reset_done'),
      path('password_reset/&lt;uidb64&gt;/&lt;token&gt;/', auth_views.PasswordResetConfirmView.as_view(
          template_name='accounts/password_reset_confirm.html'
      ), name='password_reset_confirm'),
      path('password_reset/complete/', auth_views.PasswordResetCompleteView.as_view(
          template_name='accounts/password_reset_complete.html'
      ), name='password_reset_complete'),
  ]
  </code></pre>
  
  <p>Here's the <code>accounts/templates</code> directory structure:</p>
  
  <ul>
  <li>templates/
  
  <ul>
  <li>accounts/
  
  <ul>
  <li>password_reset.html</li>
  <li>password_reset_email.html</li>
  <li>password_reset_done.html</li>
  <li>password_reset_confirm.html</li>
  <li>password_reset_complete.html</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>I don't see anything wrong with what I have done so far. Any eye opener would be greatly appreciated, thanks! </p>