Made changes necessary to access all sites in a development environment, at .dev domains.
settings.base_url is now used everywhere it should be used, including images on portal site.