我们从Python开源项目中,提取了以下28个代码示例,用于说明如何使用django.conf.settings.FILE_UPLOAD_MAX_MEMORY_SIZE。
def handle_raw_input(self, input_data, META, content_length, boundary, encoding=None): """ Use the content_length to signal whether or not this handler should be in use. """ # Check the content-length header to see if we should # If the post is too large, we cannot use the Memory handler. if content_length > settings.FILE_UPLOAD_MAX_MEMORY_SIZE: self.activated = False else: self.activated = True