from flask import Flask
from flask.ext.bootstrap import Bootstrap
from flask.ext.sqlalchemy import SQLAlchemy

app = Flask(__name__)
#Näin pystyy conffaan suoraan ilman erillistä config fileä
#app.config([SERVER_NAME]='localhost:3000') 
#This lines configures our app using the config.py file
app.config.from_object('config')
bootstrap = Bootstrap(app)
db = SQLAlchemy(app)

from blueprint.ud.ud_blueprint import ud
from blueprint.auth.auth_blueprint import auth
#Register all needed blueprints
app.register_blueprint(ud)
app.register_blueprint(auth)