TemplateDoesNotExist at /accounts/logout/ logout.html

108 views
Skip to first unread message

Parvez Khan Pathan

unread,
Jan 7, 2020, 4:13:43 AM1/7/20
to Django users
Hello & afternoon

i'm new to django and learning from Udemy Bootcamp course but i make Blog Post WEb using django Everything is work good Except Logout
can you please help out where made i mistake... even i check many Stackoverflow solution but not work for me even Django Documentation is complex too!

This is URL Code:

codeUrl.png



This is Template error:

codeError.png




Regard;

Parvez Khan Pathan


Bruckner de Villiers

unread,
Jan 7, 2020, 4:25:15 AM1/7/20
to django...@googlegroups.com

Parvez,

Please paste the code, not a pic of the code – it’s too small to read.

 

Bruckner de Villiers

083 625 1086

 

From: <django...@googlegroups.com> on behalf of Parvez Khan Pathan <iamparv...@gmail.com>
Reply to: <django...@googlegroups.com>
Date: Tuesday, 07 January 2020 at 11:15
To: Django users <django...@googlegroups.com>
Subject: TemplateDoesNotExist at /accounts/logout/ logout.html

 

Hello & afternoon

 

i'm new to django and learning from Udemy Bootcamp course but i make Blog Post WEb using django Everything is work good Except Logout

can you please help out where made i mistake... even i check many Stackoverflow solution but not work for me even Django Documentation is complex too!

 

This is URL Code:

 

 

 

This is Template error:

 

 

 

 

Regard;

Parvez Khan Pathan

 

--
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 django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7a56322b-aa52-47e8-8398-e4daec2795ca%40googlegroups.com.

ramadhan ngallen

unread,
Jan 7, 2020, 4:32:18 AM1/7/20
to django...@googlegroups.com
Hello
The template directory(name) is not correct. Kindly change template directory to "registration/logout.html" instead of "logout.html"

Best Regards

Ramadhan Ngallen
Software Consultant

On 7 Jan 2020, 12:24 +0300, Bruckner de Villiers <bruckner....@gmail.com>, wrote:

Parvez,

Please paste the code, not a pic of the code – it’s too small to read.

 

Bruckner de Villiers

083 625 1086

 

From: <django...@googlegroups.com> on behalf of Parvez Khan Pathan <iamparv...@gmail.com>
Reply to: <django...@googlegroups.com>
Date: Tuesday, 07 January 2020 at 11:15
To: Django users <django...@googlegroups.com>
Subject: TemplateDoesNotExist at /accounts/logout/ logout.html

 

Hello & afternoon

 

i'm new to django and learning from Udemy Bootcamp course but i make Blog Post WEb using django Everything is work good Except Logout

can you please help out where made i mistake... even i check many Stackoverflow solution but not work for me even Django Documentation is complex too!

 

This is URL Code:

 

<image001.png>

 

 

This is Template error:

 

<image002.png>

 

 

 

Regard;

Parvez Khan Pathan

 

--
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 django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7a56322b-aa52-47e8-8398-e4daec2795ca%40googlegroups.com.

--
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 django-users...@googlegroups.com.

Kasper Laudrup

unread,
Jan 7, 2020, 4:36:21 AM1/7/20
to django...@googlegroups.com
Hi Parvez.

On 07/01/2020 10.13, Parvez Khan Pathan wrote:
> i'm new to django and learning from Udemy Bootcamp course but i make
> Blog Post WEb using django Everything is work good Except Logout
> can you please help out where made i mistake...

If you read the error messages it clearly shows what the problem is and
more or less giving you a solution as well.

You need a template called "logout.html" and the error page tells you
where it was looking for that template in the "Template-loader
postmortem" part.

This guide might be helpful:

https://simpleisbetterthancomplex.com/tutorial/2016/06/27/how-to-use-djangos-built-in-login-system.html

Hope that helps.

Kind regards,

Kasper Laudrup
Reply all
Reply to author
Forward
0 new messages