Example #1
0
# create users
u1 = User(name="Joshua", email="*****@*****.**", password="******")
u1.save()
u2 = User(name="Isaac", email="*****@*****.**", password="******")
u2.save()
u3 = User(name="Cow", email="*****@*****.**", password="******")
u3.save()
u4 = User(name="moo", email="*****@*****.**", password="******")
u4.save()
# # create questions
q1 = Question(text="Joshua went the the market to buy ___head biscuits",
              options=["went", "arrow", "sheep", "cow"],
              answer=4,
              credit="oxcow university")
q1.save()
q2 = Question(text="Joshua and Isaac were eating ___head biscuits ",
              options=["cow", "arrow", "went", "sheep"],
              answer=1,
              credit="cowbridge university")
q2.save()
q3 = Question(text="Isaac exclamed that ___head biscuits were his favourite",
              options=["went", "arrow", "cow", "sheep"],
              answer=3,
              credit="cowbridge university")
q3.save()
q4 = Question(text="Cows are the key to ___head biscuits ",
              options=["went", "arrow", "cow", "sheep"],
              answer=3,
              credit="cowvord university")
q4.save()