F
F
Friend2016-05-04 17:47:23
Django
Friend, 2016-05-04 17:47:23

How to get user data by id Django 1.9?

Novice programmer. I ran into a problem, there is a user id and you need to find out the rest of his data from it, how can this be done?
using sqlite

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Kitaev, 2016-05-04
@deliro

User.objects.get(pk=you_know_it)
So what?

D
Dim Boy, 2016-05-31
@twix007

https://docs.djangoproject.com/ja/1.9/topics/auth/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question