diff --git a/core/templates/core/logout.html b/core/templates/core/logout.html
new file mode 100644
index 0000000..bfefb1f
--- /dev/null
+++ b/core/templates/core/logout.html
@@ -0,0 +1,2 @@
+
You have been logged out
+Home page
\ No newline at end of file
diff --git a/core/urls.py b/core/urls.py
index 56da8bc..a995a49 100644
--- a/core/urls.py
+++ b/core/urls.py
@@ -5,4 +5,5 @@
urlpatterns = [
path('login/', views.LoginView.as_view(), name='login'),
+ path('logout/', views.LogoutView.as_view(), name='logout'),
]
\ No newline at end of file
diff --git a/core/views.py b/core/views.py
index de18709..d419a7f 100644
--- a/core/views.py
+++ b/core/views.py
@@ -18,3 +18,6 @@ def form_valid(self, form):
if remember_me:
self.request.session.set_expiry(1209600)
return redirect('landing-page')
+
+class LogoutView(views.LogoutView):
+ template_name = 'core/logout.html'
diff --git a/templates/landing_page.html b/templates/landing_page.html
index 58d3a31..d837572 100644
--- a/templates/landing_page.html
+++ b/templates/landing_page.html
@@ -1,6 +1,7 @@
Landing Page
{% if user.is_authenticated %}
-{{user.email}}
+ {{user.email}}
+ To logout Click here
{% else %}
-Not logged in
+ Not logged in Login
{% endif %}
\ No newline at end of file