Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

User.objects.first() get specific id user in django

try:
   user_id = int(request.POST['id'])
   user = User.objects.get(id=user_id)
except  User.DoesNotExist:
   //handle the case when the user does not exist.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #specific #id #user #django
ADD COMMENT
Topic
Name
1+7 =