good news ! pk key is ok , But your database does not contain record for this user. you can do this by manually investigating database or by next code:
rom django.core.exceptions import ObjectDoesNotExist try: MyModel = UserModel.objects.get(id=1) except ObjectDoesNotExist: print("Either the entry or blog doesn't exist.") 2012/11/22 David <davidwi...@adviserbreakthrough.co.uk>: > Hi Sergiy > > That line outputs: > > 1 <type 'int'> > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/p3yEqcw-2_cJ. > > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.