I tried to test GridFS and I cannot get past this: I've put a file into a local gridfs.
$ mongofiles list connected to: 127.0.0.1 IMGP2224.JPG 1125745 in the code I have:
from pymongo import MongoClient import gridfs ... def index(): db = MongoClient('localhost', 27017).gridfs files = gridfs.GridFS(db) image = files.list() import pdb;pdb.set_trace() **pdb here gives empty []** return render_template("index.html", images=image) What am I doing wrong?