D
D
D1sec2019-10-23 01:00:23
Django
D1sec, 2019-10-23 01:00:23

When should you use models in django?

Good afternoon!
Help me understand why and when to use models in django if it can be done with template copy. For example, create tables of different categories if the same can be done in html.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Web Dentist, 2019-10-23
@D1sec

Models are needed in order to simplify the interaction with the database.
Where are you going to get the data from? In html, you can specify static data that cannot be changed in real time.
Have you read anything about Django at all?
It feels like you learned about the models and immediately came to find out HERE what they are for, although Google is filled with this information for the most I don’t want to.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question