Created
August 20, 2018 14:36
-
-
Save gpamfilis/cb5e8b769f1219f44847077f0398043e to your computer and use it in GitHub Desktop.
carousel images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@main.route('/', methods=['GET', 'POST']) | |
def index(): | |
assets_img = os.path.join(os.path.sep, basedir, 'app', 'static', 'assets', 'img') | |
image_urls = os.listdir(assets_img) | |
im = [os.path.join(os.path.sep, 'static', 'assets', 'img', img) for img in image_urls] | |
return render_template('index.html', | |
image_urls=im) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment