why is logged_out.html not overriding in django registration? : <p>I am using built-in django login and logout. In my Project/urls.py i have added url's for both login and logout.</p>

<pre><code>from django.conf.urls import include, url
from account import views
from django.contrib.auth import views as auth_views
from django.contrib import admin
urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$',views.index,name='Index'),
    url(r'^accounts/login/$',auth_views.login,name='login'),
    url(r'^accounts/logout/$',auth_views.logout,name='logout'),
    url(r'^accounts/register/$',views.register,name='register'),
    url(r'^accounts/profile/$',views.profile,name='profile'),    
]
</code></pre>

<p>and i've templates folder inside my account app folder. i have directory structure like this</p>

<pre><code>account
   -templates
      -registration
          -login.html
          -logged_out.html
          -register.html
      -rest_html_files
-rest files
</code></pre>

<p>i've read django docs which say that for login() default template is registration/login.html which is working fine in my project and logout() default template is registration/logged_out.html if no arguments is supplied but whenever it Logout button ( which has a  href={% url 'logout' %} ) is clicked it redirects to the admin logout page rather than my custom logout page. 
what could possibly be wrong??</p>
