from flask import Flask
from flask.ext.login import LoginManager
from flask.ext.sqlalchemy import SQLAlchemy

import os

## Flask init
app = Flask(__name__)
app.secret_key = "ROOISMYROOANDDUCKISDUCK"

## DB Init
# app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://psflask:{}@localhost/psdev'.format(os.environ["DBPASS"])
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+mysqlconnector://psflask:{}@localhost/psdev'.format(os.environ["DBPASS"])

db = SQLAlchemy(app)

loginManager = LoginManager()
loginManager.init_app(app)
loginManager.login_view = "login"

from psbackend.models.user import User

## Application local init

from psbackend.views import *
from psbackend import context
from psbackend import menus


# Create the menus
menus.createApplicationMenus()

@@ -171,33 +171,88 @@
 y = 
-%22ROOISMYROOANDDUCKISDUCK%22
+'z%5Cxda%5Cxed2%5Cx1aI:%5Cx14%5Cxe6%5Cxc1%5Cxa3%5Cxea%5Cxd6n%5Cx01%5Cxad%5Cxda%5Cxdf%5Cxe8%5Cxd7%5Cx83%7C%5Cxc6%5Cxe2'
 %0A%0A##

Generated a real secret key