Dear all, thans for your input. I read doumentation from different resources and still confused to solve my problem. any help would be appreciated.
My main python program is science.py it have several modules.in it (each definition reads some parameters and results some data, that will be read by next module). but at the end, only few of the results are printed to a data file. science.py --------------- def function1(parameter1,parmeter2) : { ----- ----- } return data1 def function2(data1,parmeter3) : { ----- ----- } return data2 #output is printed to a file as data.dat that contains data1, data2 view.py ------------ from django.http import HttpResponse from science import function1 from science import function2 def science_service(request): return HttpResponse( # function1 reads parameter1, and parameter2 function1 (parameter1, parameter2), , mimetype="text/plain" ) def science_service(request): return HttpResponse( function2 (data1, parameter3), , mimetype="text/plain" ) is this the correct way to write my view based on George's suggestion: i keep my science.py in the current working directory. pls shed some light....your suggestions are very valuable for novice like me. thanks and regards --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---