from flask import Flask

app = Flask(__name__)

import catalog.application

UPLOAD_FOLDER = "/vagrant/catalog/catalog/static/images"
app.config["UPLOAD_FOLDER"] = UPLOAD_FOLDER
APP_FOLDER = "/vagrant/catalog/catalog"
app.config["APP_FOLDER"] = APP_FOLDER
Example #2
0
import os

from flask import Flask

app = Flask(__name__)

# generate secret key
app.secret_key = os.urandom(32)

app.config["APP_FOLDER"] = "final4"