change lockfile location to '/tmp' and also add localhost to ALLOWED_HOSTS