Fixed django setup function in case of the settings environ is already set.