First version
This commit is contained in:
6
backend/database.py
Normal file
6
backend/database.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from pymongo import MongoClient
|
||||
from config import MONGO_URI, DB_NAME
|
||||
|
||||
client = MongoClient(MONGO_URI)
|
||||
db = client[DB_NAME]
|
||||
events_collection = db["events"]
|
||||
Reference in New Issue
Block a user