import os import sys PROJECT_ROOT os path normpath os path dirname __f

1
2
3
4
5
6
7
8
import os
import sys
PROJECT_ROOT = os.path.normpath(os.path.dirname(__file__))
MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'media')
MEDIA_URL = '/media/'
ADMIN_MEDIA_PREFIX = '/media/admin/'