Answer the question
In order to leave comments, you need to log in
How to store user data in the database?
Good evening.
Not so long ago I started learning Django (and web development in general) and decided to write a small note-taking service for my local network as a learning project. And the question, in fact, is this: how to properly store user data in the database?
For example: there is a note, it has a name, text, tags and other fields, as well as a column in which the id of the user who created the note will be stored, and according to this column I have to make a selection, is this correct and are there any other methods? Suppose there will be a lot of notes sooner or later, how quickly will the base grow with this method? In addition, for example, if I want to implement the insertion of an image into a note, where should I store it? In the file system, but in the database only a link to it?
Please tell a newbie. Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question