diff --git a/app/__init__.py b/app/__init__.py index a6c9e33..963e227 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -1,4 +1,6 @@ from flask import Flask app = Flask(__name__) +app.config.from_object('config') + from app import views diff --git a/app/forms.py b/app/forms.py new file mode 100644 index 0000000..072873a --- /dev/null +++ b/app/forms.py @@ -0,0 +1,7 @@ +from flask.ext.wtf import Form, TextField, BooleanField +from flask.ext.wtf import Required + +class LoginForm(Form): + openid = TextField('openid', validators = [Required()]) + remember_me = BooleanField('remember_me', default = False) + \ No newline at end of file diff --git a/app/templates/base.html b/app/templates/base.html index 0fbd92f..0a3d1e9 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -9,6 +9,15 @@