9
9
95506682021-03-15 12:43:26
Django
9550668, 2021-03-15 12:43:26

How to track file upload with DjangoAdmin?

Good afternoon everyone!

Please tell me the next question.
I have via RESTAPI uploading files.
At the same time, when loading a file through a view, the model function is called and the path is determined, the file is renamed, etc.
If I upload a file through the admin panel, then, obviously, this function is not called, because the view is not called. How can I make some kind of signal that will be called when a file is uploaded through the admin panel?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim, 2021-03-15
@Viji

well, write a log to the console, call print in python at last! Where is the signal needed?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question