If I have one view which called myview1.py and I want to call a view which is located in myview2.py, how can I do that?
should I import myview2.py somehow?
If I have one view which called myview1.py and I want to call a view which is located in myview2.py, how can I do that?
should I import myview2.py somehow?
You should be able to just do
import myview2
and be able to access it's methods from there, assuming myview2.py is in your include path.
just import
it
from myview2 import viewname1, viewname2
value = viewname1(params)