UnboundLocalError: local variable 'settings' referenced before assignment

Related to [this issue](https://github.com/stephenmcd/mezzanine/issues/613)