<s> """<STR_LIT>""" <EOL> import warnings <EOL> from django . conf import settings <EOL> from django . core . exceptions import ImproperlyConfigured <EOL> middleware = '<STR_LIT>' <EOL> if middleware in settings . MIDDLEWARE_CLASSES : <EOL> raise ImproperlyConfigured ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> deprecated_msg = '<STR_LIT>' '<STR_LIT>' '<STR_LIT>' <EOL> DEFAULT_WITH_BUFFERING = None <EOL> setting_name = '<STR_LIT>' <EOL> if hasattr ( settings , setting_name ) : <EOL> warnings . warn ( deprecated_msg . format ( deprecated = setting_name ) , <EOL> DeprecationWarning ) <EOL> if not hasattr ( settings , setting_name ) : <EOL> setattr ( settings , setting_name , DEFAULT_WITH_BUFFERING ) <EOL> DEFAULT_LIMIT_RATE = None <EOL> setting_name = '<STR_LIT>' <EOL> if hasattr ( settings , setting_name ) : <EOL> warnings . warn ( deprecated_msg . format ( deprecated = setting_name ) , <EOL> DeprecationWarning ) <EOL> if not hasattr ( settings , setting_name ) : <EOL> setattr ( settings , setting_name , DEFAULT_LIMIT_RATE ) <EOL> DEFAULT_EXPIRES = None <EOL> setting_name = '<STR_LIT>' <EOL> if hasattr ( settings , setting_name ) : <EOL> warnings . warn ( deprecated_msg . format ( deprecated = setting_name ) , <EOL> DeprecationWarning ) <EOL> if not hasattr ( settings , setting_name ) : <EOL> setattr ( settings , setting_name , DEFAULT_EXPIRES ) <EOL> DEFAULT_SOURCE_DIR = settings . MEDIA_ROOT <EOL> setting_name = '<STR_LIT>' <EOL> if hasattr ( settings , setting_name ) : <EOL> warnings . warn ( deprecated_msg . format ( deprecated = setting_name ) , <EOL> DeprecationWarning ) <EOL> DEFAULT_SOURCE_DIR = settings . NGINX_DOWNLOAD_MIDDLEWARE_MEDIA_ROOT <EOL> setting_name = '<STR_LIT>' <EOL> if hasattr ( settings , setting_name ) : <EOL> warnings . warn ( deprecated_msg . format ( deprecated = setting_name ) , <EOL> DeprecationWarning ) <EOL> if not hasattr ( settings , setting_name ) : <EOL> setattr ( settings , setting_name , DEFAULT_SOURCE_DIR ) <EOL> DEFAULT_SOURCE_URL = settings . MEDIA_URL <EOL> setting_name = '<STR_LIT>' <EOL> if hasattr ( settings , setting_name ) : <EOL> warnings . warn ( deprecated_msg . format ( deprecated = setting_name ) , <EOL> DeprecationWarning ) <EOL> if not hasattr ( settings , setting_name ) : <EOL> setattr ( settings , setting_name , DEFAULT_SOURCE_URL ) <EOL> DEFAULT_DESTINATION_URL = None <EOL> setting_name = '<STR_LIT>' <EOL> if hasattr ( settings , setting_name ) : <EOL> warnings . warn ( deprecated_msg . format ( deprecated = setting_name ) , <EOL> DeprecationWarning ) <EOL> DEFAULT_SOURCE_DIR = settings . NGINX_DOWNLOAD_MIDDLEWARE_MEDIA_URL <EOL> setting_name = '<STR_LIT>' <EOL> if hasattr ( settings , setting_name ) : <EOL> warnings . warn ( deprecated_msg . format ( deprecated = setting_name ) , <EOL> DeprecationWarning ) <EOL> if not hasattr ( settings , setting_name ) : <EOL> setattr ( settings , setting_name , DEFAULT_DESTINATION_URL ) </s>
