import os, re, datetime
from time import gmtime, strftime
from django.conf import settings
import os, re, datetime
from time import gmtime, strftime
from django.conf import settings
self.head = os.path.split(path)[0]
self.filename = os.path.split(path)[1]
self.filename_lower = self.filename.lower() # important for sorting
self.head = os.path.split(path)[0]
self.filename = os.path.split(path)[1]
self.filename_lower = self.filename.lower() # important for sorting