Skip to content

Commit faa2de0

Browse files
committed
update
1 parent de9c9bd commit faa2de0

File tree

4 files changed

+71
-0
lines changed

4 files changed

+71
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from flask import Flask, redirect, url_for, render_template
2+
3+
app = Flask(__name__)
4+
5+
@app.route("/")
6+
def home():
7+
return render_template("index.html")
8+
9+
@app.route("/about")
10+
def about():
11+
return render_template("about.html")
12+
13+
if __name__ == "__main__":
14+
app.run(debug=True)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{% extends "base.html" %}
2+
3+
{% block title %}About Page{% endblock %}
4+
5+
{% block content %}
6+
7+
<h1>about.html - Test</h1>
8+
<br>
9+
<UL>
10+
<li>Abdul Kalam. listen); 15 October 1931 – 27 July 2015) was an Indian aerospace scientist and politician who served as the 11th President of India from 2002 to 2007. He was born and raised in Rameswaram, Tamil Nadu and studied physics and aerospace engineering.
11+
<li>Born: Avul Pakir Jainulabdeen Abdul Kalam; 15 ...
12+
<li>Resting place: Dr. A. P. J. Abdul Kalam Desiya ...
13+
<li>Profession: Aerospace Scientist; Author
14+
<li>Institutions: Defence Research and Developm.
15+
</UL>
16+
{% endblock %}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta name="viewport" content="width=device-width, initial-scale=1">
5+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
6+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
7+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
8+
9+
<title>{% block title %} {% endblock %}</title>
10+
</head>
11+
<body>
12+
<nav class="navbar navbar-inverse">
13+
<div class="container-fluid">
14+
<div class="navbar-header">
15+
<a class="navbar-brand" href="#">AIML class</a>
16+
</div>
17+
<ul class="nav navbar-nav">
18+
<li class="active"><a href="/">Home</a></li>
19+
<li><a href="#">Page 1</a></li>
20+
<li><a href="#">Page 2</a></li>
21+
<li><a href="/about">About Us</a></li>
22+
</ul>
23+
</div>
24+
</nav>
25+
{% block content %}
26+
27+
{% endblock %}
28+
29+
</body>
30+
</html>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{% extends "base.html" %}
2+
3+
{% block title %}Home Page{% endblock %}
4+
5+
{% block content %}
6+
7+
<h1>Index.html - Test</h1>
8+
9+
This is testing index file
10+
11+
{% endblock %}

0 commit comments

Comments
 (0)