Trying to run our README's example without PyMongo installed throws:
Traceback (most recent call last):
File "run.py", line 2, in <module>
from flask_stupe import paginate, schema_required
ImportError: cannot import name 'paginate'
This error is completely normal, because we only expose things that are usable based on the different modules available. But it's not very developer-friendly and an error message explaining that paginate is not available because pymongo isn't installed would be much better.
Trying to run our README's example without PyMongo installed throws:
This error is completely normal, because we only expose things that are usable based on the different modules available. But it's not very developer-friendly and an error message explaining that
paginateis not available becausepymongoisn't installed would be much better.