O
O
Oleg Kotov2019-03-25 16:56:41
Django
Oleg Kotov, 2019-03-25 16:56:41

How to get data from DB in Django?

All tutorials say that the data in the database for processing can be obtained through the API. But here's the question. Where can I make requests? From a separate handler file, from models.py or from views.py?
That is, I need the data from the TextField (it is) to be written to the database when the user clicks the button, and then they are obtained from there and processed.
How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-04-06
@AgeofCreations

Seems like you're here Creating your first application with Django, part .
Forms are handled in view.py

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question