Better support for different styles of django version settings. Fix #85.

Fixes the differnt settings layouts across django versions