I have created a function in views.py which is
def func(request)
# …
Basically, I tried using the variable var, in another python file, say z.py, by typing:
from views import func
but I got the error
ImportError: cannot import name func.
Please help me out. I want to use the variable var in the other python script, but am getting this error.