In my environment there is no initial user created, when arriving at this passage in the tutorial (section 10 Django ORM (Querysets)):
What users do we have in our database? Try this:
>>> User.objects.all()
[<User: ola>]
I simply ran the following, to get a dummyuser to use:
>>> User.objects.create(username='myuser')
What about adding this command to the tutorial section?
In my environment there is no initial user created, when arriving at this passage in the tutorial (section 10 Django ORM (Querysets)):
I simply ran the following, to get a dummyuser to use:
>>> User.objects.create(username='myuser')What about adding this command to the tutorial section?