models.py 446 Bytes
from django.db import models
from jsonfield import JSONField


# Create your models here.
class Video(models.Model):
  videourl = models.CharField(max_length=1000, blank=True)
  title = models.CharField(max_length=200)
  tags = models.CharField(max_length=500)
  
class Tags(models.Model):
  tag = models.CharField(max_length=200)

class VideoFile(models.Model):
  video = models.FileField(upload_to='uploads/%Y/%m/%d/%h/%m/%s', max_length=100),