-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
44 lines (31 loc) · 952 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from flask import Flask, render_template, redirect, request
import datetime
app = Flask(__name__)
@app.route("/")
def index():
#return "Hello"
# now = datetime.datetime.now()
# newDay = now.day
# newMonth = now.month
# newYear = newDay == 1 and newMonth == 1
# newYear = True
names = ["Nana","King","Prempeh","A","Thank You God, I'm getting there "]
return render_template("index.html", content = names )
@app.route("/prempeh")
def prempeh():
title = "ANGELA MY LOVE"
return render_template("index.html", content = title)
@app.route("/donate", methods=["GET","POST"])
def donate():
name = request.form.get("name")
return render_template("donate.html", content = name )
@app.route("/nana")
def nana():
return "Welcome Nana Prempeh"
# @app.route("/final")
# def final():
# return "Ok, learn at your pace and push yourself"
# @app.route("/<string:name>")
# def name(name):
# name = name.upper()
# return f"Welcome {name}"