From 547d3118a31fd2af5335482153ee08ae91b37599 Mon Sep 17 00:00:00 2001 From: Vasu0341 <42484041+Vasu0341@users.noreply.github.com> Date: Thu, 27 May 2021 18:01:25 +0530 Subject: [PATCH] added about content --- files/fakenews/myapp/urls.py | 1 + files/fakenews/myapp/views.py | 4 ++++ files/fakenews/templates/about.html | 23 +++++++++++++++++++++++ files/fakenews/templates/index.html | 2 +- 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 files/fakenews/templates/about.html diff --git a/files/fakenews/myapp/urls.py b/files/fakenews/myapp/urls.py index c486297..e116032 100644 --- a/files/fakenews/myapp/urls.py +++ b/files/fakenews/myapp/urls.py @@ -3,4 +3,5 @@ urlpatterns = [ path('', views.index, name='index'), + path('', views.about, name='about'), ] \ No newline at end of file diff --git a/files/fakenews/myapp/views.py b/files/fakenews/myapp/views.py index 338fd12..6afd656 100644 --- a/files/fakenews/myapp/views.py +++ b/files/fakenews/myapp/views.py @@ -31,3 +31,7 @@ def index(request): result = None url = "" return render(request, 'index.html', {'result': result, 'given_url': url}) + +def about(request): + return render(request, 'about.html') + \ No newline at end of file diff --git a/files/fakenews/templates/about.html b/files/fakenews/templates/about.html new file mode 100644 index 0000000..52daa27 --- /dev/null +++ b/files/fakenews/templates/about.html @@ -0,0 +1,23 @@ + + + + + + + Fake News Detector + + + {% load static%} + + + + +
+
+ Fake News Detector + About +
+
+ + + \ No newline at end of file diff --git a/files/fakenews/templates/index.html b/files/fakenews/templates/index.html index e734174..a9b995d 100644 --- a/files/fakenews/templates/index.html +++ b/files/fakenews/templates/index.html @@ -15,7 +15,7 @@
Fake News Detector - About + About