3 ms·
same! I've always been shielded from it with Django's conventions. (the ecosystem I mainly work in). I used a lot of '.' and '..' imports but I think something
by abledon 5y ago
same! I've always been shielded from it with Django's conventions. (the ecosystem I mainly work in). I used a lot of '.' and '..' imports but I think something changed in python3 that made that strategy a lot less forgiving... now I _really_ should read the entirety of this article!
- BozeWolf 5y agoAlways use absolute imports, do not use relative imports. Solves most problems. Also is recommended by pep8. Skip the relative imports in the article. No need to read it entirely anymore ;-)