Adding base of loginning

This commit is contained in:
Denes Surman 2016-10-28 05:45:12 +02:00
parent 707a5c41cd
commit addfa54b38
2 changed files with 5 additions and 0 deletions

4
app.py
View File

@ -1,6 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import connexion import connexion
from flask_login import LoginManager
app = connexion.App(__name__, specification_dir='./swagger/') app = connexion.App(__name__, specification_dir='./swagger/')
app.add_api('swagger.yaml', app.add_api('swagger.yaml',
@ -8,5 +9,8 @@ app.add_api('swagger.yaml',
'title': 'Rubber Duck Booking Tool' 'title': 'Rubber Duck Booking Tool'
}) })
login_manager = LoginManager()
#login_manager.init_app(app)
if __name__ == '__main__': if __name__ == '__main__':
app.run(port=8080) app.run(port=8080)

View File

@ -2,3 +2,4 @@ Flask==0.11.1
Flask-RESTful==0.3.5 Flask-RESTful==0.3.5
connexion==1.0.129 connexion==1.0.129
gunicorn gunicorn
flask-login