28 lines
506 B
Python
28 lines
506 B
Python
import datetime
|
|
|
|
from flask import Flask, render_template
|
|
|
|
# Create a new Flask instance
|
|
app = Flask(__name__)
|
|
|
|
|
|
# Create a new route
|
|
@app.route('/')
|
|
def index():
|
|
# return 'Hello World'
|
|
return render_template('index.html', title='Home', utc_dt=datetime.datetime.now().strftime("%d.%m.%Y %H:%M:%S"))
|
|
|
|
@app.route('/login')
|
|
def login():
|
|
return 'Login'
|
|
|
|
|
|
@app.route('/signup')
|
|
def signup():
|
|
return 'Sign-Up'
|
|
|
|
|
|
# Run the application
|
|
if __name__ == '__main__':
|
|
app.run(port=5000, debug=True)
|