#NEWLINE# def absolute_path( self , path ) : #NEWLINE# #INDENT# if ( path . startswith ( 'http://' ) or path . startswith ( 'https://' ) or path . startswith ( '/' ) ) : #NEWLINE# #INDENT# return path #NEWLINE# #UNINDENT# return urljoin ( settings . MEDIA_URL , path )