def _get_resource_type(self, name):
extension = self._get_file_extension(name)<EOL>if extension is None:<EOL><INDENT>return self.RESOURCE_TYPE<EOL><DEDENT>elif extension in app_settings.STATIC_IMAGES_EXTENSIONS:<EOL><INDENT>return RESOURCE_TYPES['<STR_LIT>']<EOL><DEDENT>elif extension in app_settings.STATIC_VIDEOS_EXTENSIONS:<EOL><INDENT>return RESOURCE_TYPES['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>return self.RESOURCE_TYPE<EOL><DEDENT>
Implemented as static files can be of different resource types.
Because web developers are the people who control those files, we can distinguish them
simply by looking at their extensions, we don't need any content based validation.