Skip to content

Instantly share code, notes, and snippets.

@gpamfilis
Created August 20, 2018 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gpamfilis/cb5e8b769f1219f44847077f0398043e to your computer and use it in GitHub Desktop.
Save gpamfilis/cb5e8b769f1219f44847077f0398043e to your computer and use it in GitHub Desktop.
carousel images
@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