MIDDLEWARE = [
'django.contrib.sessions.middleware.SessionMiddleware',
# 'django.middleware.locale.LocaleMiddleware',
'solid_i18n.middleware.SolidLocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
[pid: 6495|app: 0|req: 7/17] 213.230.100.62 () {44 vars in 1206 bytes} [Mon Jul 17 06:51:50 2017] GET /download/brief => generated 141438 bytes in 10 msecs via sendfile() (HTTP/1.1 200) 4 headers in 163 bytes (0 switches on core 0)
[pid: 6491|app: 0|req: 9/18] 213.230.100.62 () {44 vars in 1220 bytes} [Mon Jul 17 06:51:59 2017] GET /download/presentation => generated 17327203 bytes in 74 msecs via sendfile() (HTTP/1.1 200) 4 headers in 178 bytes (22 switches on core 0)
$ wget http://my-site.com/download/presentation
--2017-07-17 11:29:38-- http://my-site.com/download/presentation
Resolving my-site.com... my-ip.site
Connecting to my-site.com|my-ip.site|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘presentation.1’
presentation.1 [ <=> ] 1.60M 105KB/s in 2m 21s
2017-07-17 11:32:01 (11.6 KB/s) - ‘presentation.1’ saved [1679543]
213.230.100.62 - - [16/Jul/2017:23:42:47 -0700] "GET /download/brief HTTP/1.1" 200 141610 "http://my-site.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
OSError: [Errno 12] Cannot allocate memory