models.py 284 Bytes
from django.db import models
from django.utils import timezone

# Create your models here.
class File(models.Model):
    path=models.CharField(max_length=300)
    created_date = models.DateTimeField(default=timezone.now)
    modified_date = models.DateTimeField(blank=True, null=True)