Python/MongoDB: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

20 July 2024

  • curprev 21:3821:38, 20 July 2024Kenneth talk contribs 1,948 bytes +87 No edit summary
  • curprev 21:3721:37, 20 July 2024Kenneth talk contribs 1,861 bytes +1,861 Created page with "== Test == <pre> #!/usr/bin/env python3 # python -m pip install pymongo import pymongo import urllib.parse # pymongo tutorial - https://www.w3schools.com/python/python_mongodb_getstarted.asp with open('../files/mongo.username', 'r') as file: username = file.read().replace('\n', '') with open('../files/mongo.password', 'r') as file: password = file.read().replace('\n', '') # pymongo.errors.InvalidURI: Username and password must be escaped according to RFC 398..."