-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathboilercode
More file actions
66 lines (51 loc) · 1.67 KB
/
boilercode
File metadata and controls
66 lines (51 loc) · 1.67 KB
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
from flask import Flask, render_template, request, redirect, graphviz
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')
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('/')
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"