Connection between MongoDb and ERPNext

For some reason i need to get some data from external MongoDB database into erpnext.

Can anyone suggest me how to do or provide any sample code. i am trying to import pymongo but it’s giving error like ModuleNotFoundError: import pymongo

Create custom app.

Add pymongo and pin version in the requirements.txt of the new app.

Install this new app. Requirements should be installed.
If not manually install requirements.

Then it’ll be available

1 Like

Thanks for your reply

I added like this
pymongo-3.10.1
still getting same error

Hello Sir
added like this
pymongo==3.10.1
after that run below command it’s working
bench update --requirements

Thanks