In my html page shows an error like this when click on logout button

32 views
Skip to first unread message

Sadiqali ard

unread,
Jan 22, 2023, 2:48:57 PM1/22/23
to Django users
In my html page shows an error like this:
Page not found (404) Request Method:    GET Request URL:    http://127.0.0.1:8000/credentails/logout Using the URLconf defined in travelproject.urls, Django tried these URL patterns, in this order:  admin/ [name='demo'] credentials/ ^static\/(?P<path>.*)$ 





this is my html page here created the link to the user
<!-- Header -->

<header class="header">
<div class="container">
<div class="row">
<div class="col">
<div class="header_content d-flex flex-row align-items-center justify-content-start">
<div class="header_content_inner d-flex flex-row align-items-end justify-content-start">
<div class="logo"><a href="index.html">My site</a></div>
<nav class="main_nav">
<ul class="d-flex flex-row align-items-start justify-content-start">
<li><a href="index.html">Home</a></li>
<li class="active"><a href="about.html">About us</a></li>
{% if user.is_authenticated %}
<li>Hello {{user.username}}</li>

<li><a href="credentails/logout">Logout</a></li>
{% else %}
<li><a href="credentails/register">Register</a></li>
<li><a href="credentails/login">Login</a></li>


{% endif %}
</ul>
</nav>
<div class="header_phone ml-auto">Call us: 00-56 445 678 33</div>

Arvind Barge

unread,
Feb 15, 2023, 10:12:39 AM2/15/23
to Django users

might be you spelling is wrong     http://127.0.0.1:8000/credentails/logout   "here you use  "credentails  "
and url path you use admin/ [name='demo'] credentials/ ^static\/(?P<path>.*)$   '  both should be same
Reply all
Reply to author
Forward
0 new messages