I am a beginner using python2.5.1.
In my project, I have a views.py in uscom.users which has
uid=2
def disp_list():
return uid
In another module forms.py , also in uscom.users, I am trying to access that value.
from uscom.users.views import *
def id_val():
key_id = views.disp_list()
return key_id
This doesn't work. Returns error that views is not defined. Am I doing something wrong? Please help.