B
B
ban_anna2020-08-25 16:20:44
MySQL
ban_anna, 2020-08-25 16:20:44

Where in Django to call the function to write to the database?

Good afternoon. I am new to Django. There is a function that writes information to the database at a certain point in time. Where should it be called? I can’t in views.py, because I don’t pass data to the template. Even if I call in views. py file, the local server will not start until the function is fully executed, which is a very long time.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question