Delphi-be / app /database.py
shubhendu-ghosh's picture
Upload 4 files
a28fbd7 verified
raw
history blame contribute delete
253 Bytes
from pymongo import MongoClient
import os
from dotenv import load_dotenv
load_dotenv()
MONGO_URI = os.getenv("MONGO_URI")
client = MongoClient(MONGO_URI)
db = client["delphi"]
users_collection = db["users"]
posts_collection = db["posts"]