Videofield Django
class Post(models.Model):
# ... other things here
video_file = models.FileField(upload_to='post_files',blank=True,null=True)
BenLeolam
class Post(models.Model):
# ... other things here
video_file = models.FileField(upload_to='post_files',blank=True,null=True)
<video width="500px" height="500px" controls>
<source src="{{ post.video_file.url }}" type="video/mp4">
</video>