W
W
W1zzyy2022-04-10 14:52:29
Django
W1zzyy, 2022-04-10 14:52:29

How do I store information that belongs to the user?

I am a relative newbie to django and python. Now I set myself the task of making a task manager.
And during the development process, I ran into a problem, I need each user to have their own tasks and everyone sees only what he created, I don’t understand at all how to attribute certain blocks to a registered user.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Nesterov, 2022-04-10
@W1zzyy

Obviously, to add a foreign key to the user model.
There are plenty of examples in the documentation, which should be read by beginners (well, or at least look at some points).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question