Question: what is the difference between absolute import and relative import?
Answer: Always use the absolute package path for all imports. Even now that PEP 328 [7] is fully implemented in Python 2.5, its style of explicit relative imports is actively discouraged; absolute imports are more portable and usually more readable. especially if you import several different namespaces.