Convert MEDIA_ROOT to unicode to avoid UnicodeWarning

This commit is contained in:
Andy Kittner 2012-07-08 18:09:25 +02:00
parent 5438b2c318
commit cd245e4605

View File

@ -62,7 +62,7 @@ USE_L10N = True
# Absolute path to the directory that holds media. # Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/" # Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = os.path.join(SITE_ROOT, './static/') MEDIA_ROOT = _fs2unicode(os.path.join(SITE_ROOT, './static/'))
# URL that handles the media served from MEDIA_ROOT. Make sure to use a # URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases). # trailing slash if there is a path component (optional in other cases).