def create_app(): app = Flask(__name__) # configurar extensoes db.configure(app) views.configure(app) admin.configure(app) contact.configure(app) # configurar variaveis app.config['SECRET_KEY'] = 'secret' return app
def create_app(): app = Flask(__name__) # configurar extensoes db.configure(app) views.configure(app) contact.configure(app) admin.configure(app) # configurar variaveis app.config['SECRET_KEY'] = 'dhuoel3nbjfop9dh@fmsdkfsml1' return app
def create_app(): app = Flask(__name__, static_folder="static", template_folder="frontend") # Extensions db.configure(app) views.configure(app) admin.configure(app) # Blueprint app example contact.configure(app) # Configurar variaveis app.config["SECRET_KEY"] = "skdalksdjsalkjdlkajsdlkajlks" return app
def create_app(): """Function ?.""" # app = Flask(__name__, template_folder='/template/bar.html', static_folder='/static') app = Flask(__name__) db.configure(app) views.configure(app) # configurar extensões contact.configure(app) # Flask Admin admin.configure(app) # configurar as variáveis app.config['SECRET_KEY'] = 'kdjlkhgslskglg' return app
def create_app(): app = Flask(__name__) views.configure(app) contact.configure(app) return app