
from flask import Flask
import jinja2
import os

app = Flask(__name__, static_folder='static')

env = 'production'
app.config['ENV'] = env
app.config.from_pyfile('config.py')

# app.config['SECURITY_USER_IDENTITY_ATTRIBUTES'] = ('name', 'email')

# CSRF protection
from flask_wtf.csrf import CsrfProtect

#CsrfProtect(app)

# Database
from flask_sqlalchemy import SQLAlchemy

# app.config['SQLALCHEMY_DATABASE_URI'] = os.environ['DATABASE_URL']
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://scoda:scoda@localhost/scoda'
db = SQLAlchemy(app)

# Mail
from flask_mail import Mail

mail = Mail(app)

from flask_mobility import Mobility

mobility = Mobility(app)
@@ -94,26 +94,73 @@
 ')%0A%0A
-env = 'production'
+# setup configs%0Aenv = os.environ.get('FLASK_ENV', 'development')%0A
 %0Aapp
@@ -214,14 +214,23 @@
 nfig
-.py')%0A
+/%25s.cfg' %25 env)
 %0A# a
@@ -355,17 +355,16 @@
 rotect%0A%0A
-#
 CsrfProt
@@ -494,16 +494,18 @@
 E_URL'%5D%0A
+# 
 app.conf
@@ -712,12 +712,13 @@
 obility(app)
+%0A

Update app.py