M
M
Michael2020-11-11 09:02:50
Django
Michael, 2020-11-11 09:02:50

How to handle audio files in django?

There is a site with notes. How to write a model string for an audio file so that it appears on a playable page? Template, form, view everything is there

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-11-11
@kudinov-prog

In the model, use a regular FileField , and in the template, use a tag <audio>whose attribute displays srcthe file URL.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question