changed settings file to always use localhost for the hostname. it will work for the production server too