common/lib needs to be independent of the web application implementation choices, so you cannot import anything from common/djangoapps.