Splittig it up so you can also determine the environment. I do this with Django settings the time: base/common, local, testing, production. The latter are very tiny and contain small bits of extra configuration.
Personally I like this approach way more than a bunch of if/else statements in a single file.