Skip to content

Commit ee19fc4

Browse files
committedMar 4, 2018
Update boilerplate
1 parent 9089c05 commit ee19fc4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
 

‎app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22

33
from flask import Flask, render_template, request, redirect, url_for
4-
from flask.ext.sqlalchemy import SQLAlchemy
4+
from flask_sqlalchemy import SQLAlchemy
55

66
app = Flask(__name__)
77

‎templates/index.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<form action="{{ url_for('user') }}" method="post">
2-
<input type="text" name="name" placeholder="Name..."/>
3-
<input type="text" name="email" placeholder="Email..."/>
2+
<label for="name">Name</label>
3+
<input id="name" type="text" name="name" placeholder="John Smith"/>
4+
<label for="email">Email</label>
5+
<input id="email" type="text" name="email" placeholder="j.smith@example.com"/>
46
<button type="submit">Save</button>
57
</form>
68
{% for u in users %}

0 commit comments

Comments
 (0)
Please sign in to comment.