Just simplify things. Keep local/production differences in a local_settings and production_settings and such.