Function in views.py:
def addevent(request): client = MongoClient(\'localhost\', 27017) db_handle = client[\'event\'] col = db_handle[\'library_event\