iralex-backend/sandbox.py

13 lines
283 B
Python

from mongoengine import *
connect(host="mongodb://detective_book:dtmnpasswordiscorrect@185.235.42.86:27017/detective_book")
class Temp(Document):
message = StringField(max_length=128)
tmp = Temp(message="The temp message").save()
for t in Temp.objects:
print(t.message)