|
@ -1,9 +1,13 @@ |
|
|
|
|
|
from datetime import datetime |
|
|
from flask import Flask, render_template |
|
|
from flask import Flask, render_template |
|
|
from flask_bootstrap import Bootstrap |
|
|
from flask_bootstrap import Bootstrap |
|
|
|
|
|
from flask_moment import Moment |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app = Flask(__name__) |
|
|
app = Flask(__name__) |
|
|
|
|
|
|
|
|
bootstrap = Bootstrap(app) |
|
|
bootstrap = Bootstrap(app) |
|
|
|
|
|
moment = Moment(app) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.errorhandler(404) |
|
|
@app.errorhandler(404) |
|
@ -18,7 +22,7 @@ def internal_server_error(e): |
|
|
|
|
|
|
|
|
@app.route('/') |
|
|
@app.route('/') |
|
|
def index(): |
|
|
def index(): |
|
|
return render_template('index.html') |
|
|
|
|
|
|
|
|
return render_template('index.html', current_time=datetime.utcnow()) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/user/<name>') |
|
|
@app.route('/user/<name>') |
|
|