#NEWLINE# def user_media_path( what ) : #NEWLINE# #INDENT# 'Make it possible to override storage paths in settings.\n\n    By default, all storage paths are in the MEDIA_ROOT.\n\n    This is backwards compatible.\n\n    ' #NEWLINE# default = os . path . join ( settings . MEDIA_ROOT , what ) #NEWLINE# key = '{0}_PATH' . format ( what . upper ( ) ) #NEWLINE# return getattr ( settings , what , default )