Modules in `common/lib` should not have Django dependencies, so you shouldn't be importing `settings` here.
I'm still not sure you need to specify the protocol explicitly here.  Could you instead specify a protocol-relative URL?  (http://www.paulirish.com/2010/the-protocol-relative-url/)