J
J
Jekson2018-04-18 15:59:46
Django
Jekson, 2018-04-18 15:59:46

How to make django work with video content?

I'm looking for a way to add video files from a mobile application, the backing of which is written in django.
Methods:
1. Add video from previously saved (local file)
2. Start shooting video directly from the application, with a maximum duration of 30 seconds and the ability to download (save) it at any time.
If everything is more or less clear with the first method, do something like

class Document(models.Model):
    file = models.FileField(upload_to="documents/%Y/%m/%d", validators=[validate_file_extension])

The second way I have no idea how to do. Let me know if anyone has done something similar.

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