fix static_dir, use static-dir for app, use media-dir for user upload