def send_media_file(self, filename):
        """
        Function used to send media files from the media folder to the browser.
        """
        cache_timeout = self.get_send_file_max_age(filename)
        return send_from_directory(self.config['MEDIA_FOLDER'], filename,
                                   cache_timeout=cache_timeout)
def send_media_file ( self , filename ) : cache_timeout = self . get_send_file_max_age ( filename ) return send_from_directory ( self . config [ 'MEDIA_FOLDER' ] , filename , cache_timeout = cache_timeout )
Function used to send media files from the media folder to the browser.