<reponame>szypkiwonsz/Cookbook-Recipes
import os

from flask import Flask
from flask_uploads import UploadSet, IMAGES, configure_uploads

# Configuration of app

app = Flask(__name__)
app.config['SECRET_KEY'] = os.getenv('SECRET_KEY')

# Configuration of images

app.config['UPLOADED_IMAGES_DEST'] = 'app/media/recipe_images'
DEFAULT_RECIPE_IMAGE_PATH = 'app/media/default.png'
images = UploadSet('images', IMAGES)
configure_uploads(app, images)

import os

from flask import Flask
from flask_uploads import UploadSet, IMAGES, configure_uploads

# Configuration of app

app = Flask(__name__)
app.config['SECRET_KEY'] = os.getenv('SECRET_KEY')

# Configuration of images

app.config['UPLOADED_IMAGES_DEST'] = 'app/media/recipe_images'
DEFAULT_RECIPE_IMAGE_PATH = 'app/media/default.png'
images = UploadSet('images', IMAGES)
configure_uploads(app, images)
# Configuration of app # Configuration of images