You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
370 B
Python
15 lines
370 B
Python
from flask import Flask, render_template, url_for, request, redirect
|
|
from datetime import datetime
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
@app.route('/', methods=['POST', 'GET'])
|
|
def index():
|
|
if request.method == 'POST':
|
|
return 'There was an issue adding your task'
|
|
else:
|
|
return render_template('index.html')
|
|
|
|
if __name__ == "__main__":
|
|
app.run(debug=True) |