On 04-05-12 05:30, cj wrote:
def myfunc():
blah blah blah
and then in views.py
def myview1():
myfunc()
def myview2():
myfunc()
What you probably want:
def myview1():
return myfunc()
So you might be missing the 'return'. Otherwise you're only calling the
helper function, not returning its results.
Reinout
--
Reinout van Rees http://reinout.vanrees.org/
rein...@vanrees.org http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"
--
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.