Addressing MissingattributError encountered with Heroku