mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Fixup for epio
This commit is contained in:
parent
0bf89f267e
commit
fd449204c1
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user