Clean fix settings

adds handling for settings module discovery in django 1.7