1
1
mirror of https://github.com/encode/django-rest-framework.git synced 2025-07-27 08:29:59 +03:00

Fixup for epio

This commit is contained in:
Tom Christie 2011-12-30 15:51:00 +00:00
parent 0bf89f267e
commit fd449204c1

View File

@ -22,6 +22,9 @@ import operator
HIGHLIGHTED_CODE_DIR = os.path.join(settings.MEDIA_ROOT, 'pygments')
MAX_FILES = 10
if not os.path.exists(HIGHLIGHTED_CODE_DIR):
os.makedirs(HIGHLIGHTED_CODE_DIR)
def list_dir_sorted_by_ctime(dir):
"""