-
Notifications
You must be signed in to change notification settings - Fork 2
/
Lost_FOund.py
70 lines (56 loc) · 1.89 KB
/
Lost_FOund.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
print('Hello World')
from flask import Flask, render_template, request, redirect
app = Flask(__name__)
from datetime import datetime
responce = ""
responce2 = ""
responce3 = ""
responce4 = ""
@app.route('/home')
def my_page():
global responce, responce2, responce3, responce4
now = datetime.now() # current date and time
year = now.strftime("%Y")
print("year:", year)
month = now.strftime("%m")
print("month:", month)
day = now.strftime("%d")
print("day:", day)
time = now.strftime("%H:%M:%S")
print("time:", time)
date_time = now.strftime("%m/%d/%Y, %H:%M:%S")
responce = request.args.get('user')
responce2 = request.args.get('email')
responce3 = request.args.get('location')
responce4 = request.args.get('image')
checkbox=request.args.get('checkbox')
return render_template('home.html', time= date_time)
@app.route('/blog')
def my_page2():
global responce, responce2, responce3, responce4
now = datetime.now() # current date and time
year = now.strftime("%Y")
print("year:", year)
month = now.strftime("%m")
print("month:", month)
day = now.strftime("%d")
print("day:", day)
time = now.strftime("%H:%M:%S")
print("time:", time)
date_time = now.strftime("%m/%d/%Y, %H:%M:%S")
return render_template('blog.html', time= date_time, user = responce, email = responce2, location = responce3, image= responce4)
@app.route('/homepage')
def my_page3():
return render_template('homepage.html')
@app.route('/')
def index():
return redirect('/home')
@app.route('/double/<number>')
def double(number):
responce = request.args.get('user')
responce2 = request.args.get('email')
responce3 = request.args.get('location')
responce4 = request.args.get('image')
app.run(debug=True, )
link
rel = "stylesheet"