Skip to content

Commit

Permalink
added about content
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasu-Bhalodia-ENG18CS0316 committed May 27, 2021
1 parent 7c14ea7 commit 547d311
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
1 change: 1 addition & 0 deletions files/fakenews/myapp/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@

urlpatterns = [
path('', views.index, name='index'),
path('', views.about, name='about'),
]
4 changes: 4 additions & 0 deletions files/fakenews/myapp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

23 changes: 23 additions & 0 deletions files/fakenews/templates/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!Doctype html>
<html lang="en" class="en">

<head>
<meta charset="utf-8">
<!doctype html>
<title>Fake News Detector</title>

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
{% load static%}
<link rel="stylesheet" href="{% static '1.css'%}">
</head>

<body>
<header>
<div class="topnav">
<a href="{% url 'index' %}"><b>Fake News Detector</b></a>
<a class="active" href=""><b>About</b></a>
</div>
</header>
</body>
<script src="http://gist-it.appspot.com/https://github.com/arunkumaraqm/Fake-News-Detection/blob/master/README.md" footer=minimal></script>
</html>
2 changes: 1 addition & 1 deletion files/fakenews/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<header>
<div class="topnav">
<a class="active" href=""><b>Fake News Detector</b></a>
<a href="#about"><b>About</b></a>
<a href="{% url 'about' %}"><b>About</b></a>
</div>
</header>

Expand Down

0 comments on commit 547d311

Please sign in to comment.