Answer the question
In order to leave comments, you need to log in
How to write data - to several databases or to one database?
There are several data formats. Let's say Format1, Format2, Format3. They practically do not differ from each other, but are collected from different sources: for example, Format1 - parsing, Format2 - independent input in the form on the site, etc.. Simplified, everything consists of: author, text, date, etc. There will be ribbons on the site. For example, one tape displays Format1 articles, another - Format2 articles, the third - Format2 and Format3 articles, the fourth tape - all Formats by a certain filter. Still, there are format differences. For example, Format2 will be stored indefinitely, Format1 and Format3 will be deleted after some time. There will also be differences in the "text": Format1 will consist of html-code, Format2 - only texts, Format3 - texts and photos.
How to do it better? To create under each Format the database? or to make one general database? I am new to web technologies, the first django project, and I started making my own model for each Format. Suddenly this is not an effective solution.
Thank you!
Answer the question
In order to leave comments, you need to log in
1 model, with field - format.
When outputting, use a filter by format.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question