<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _create_awards(self):
 """ Creates awards. """

        users = User.objects.all()

        for user in users:
            everyone_badge = Badge.objects.last()
            badge = Badge.objects.order_by('?')[0]
            try:
                award = Award.objects.create(user=user, badge=badge)
                everyone_award = Award.objects.create(user=user, badge=everyone_badge)
                logger.info('%s --- %s', award, everyone_award)
            except IntegrityError:
                pass