I am new to python. My searches did not give the results I am after.
I have a simple python script in folder_base/settings.py
.
My other script in folder_next/settings.py
would like to behave as folder_base/settings.py
. One way is to use symbolic links but I avoid this method. I want any function called from folder_next/settings.py
, they call the one in the base folder and return the same value.
I was even trying methods such as
from ..folder_base/settings.py import func1 as _func1
def func1():
return _func1()
which did not work for me. Any solution is appreciated but a solution that automatically forward the entire script is even better.
P.S. The linked question does not solve my problem. Adding another path just creates a name collision.
Can some one please remove the irrelevant duplication link?