Do you want to know the information about “how call module in the same directory”. If yes, you’re in the correct article.
how call module in the same directory
from .posts_run import get_all_posts # ^ here do relative import # or from core.posts_run import get_all_posts # because your package named 'core' and importing looks in root folder
I hope this tutorial helps you to know about “how call module in the same directory”. If you have any questions regarding this article please let us know via the comment section. Share this post with your friends & family via social networks.