support static_dir and media_dir params