accomodating changed settings var declaration in django 1.7
added missing exception handling
Merge pull request #62 from vepkenez/clean_fix_settings

Clean fix settings