Ejemplo n.º 1
0
# print(q2.id, q2.question_text)
# for c in q2.choice_set.all():
#     print(c.choice_text)
#     print(c.question.question_text)

# questions = Question.objects.filter(id__gt=0)
# for q in questions:
#     print(q.id)

u1 = FomoUser()
u1.username = '******'
u1.first_name = 'Marc'
u1.last_name = 'Oelkers'
u1.password = '******'
u1.last_login = datetime.now()
u1.birthday = datetime(1994, 12, 13)
u1.gender = 'Male'

u2 = FomoUser()
u2.username = '******'
u2.first_name = 'Shiblo'
u2.last_name = 'Pahulu'
u2.password = '******'
u2.last_login = datetime.now()
u2.birthday = datetime(1987, 07, 02)
u2.gender = 'Male'

u3 = FomoUser()
u3.username = '******'
u3.first_name = 'Colby'
u3.last_name = 'Thomas'
Ejemplo n.º 2
0
# print(q2.id, q2.question_text)
# for c in q2.choice_set.all():
#     print(c.choice_text)
#     print(c.question.question_text)

# questions = Question.objects.filter(id__gt=0)
# for q in questions:
#     print(q.id)

u1 = FomoUser()
u1.username = '******'
u1.first_name = 'Paul'
u1.last_name = 'Pahulu'
u1.password = '******'
u1.last_login = datetime.now()
u1.birthday = datetime(1982, 7, 30)
u1.gender = 'Male'

u2 = FomoUser()
u2.username = '******'
u2.first_name = 'Chris'
u2.last_name = 'Thompkins'
u2.password = '******'
u2.last_login = datetime.now()
u2.birthday = datetime(1977, 4, 21)
u2.gender = 'Male'

u3 = FomoUser()
u3.username = '******'
u3.first_name = 'Tevita'
u3.last_name = 'Pahulu'