Do it like this:

def myview(request):
   if request.method =="POST":
       return call_my_other_func(request)
   else: rtr("index.html")

def call_my_other_func(request):
   # do something with the data
   messages.info(request, "hello world")
   return rtr("index.html", context_instance=RequestContext())

2011/8/20 dm03514 <dm03...@gmail.com>

> I think you're 'call_my_other_function' is returning to the 'myview'
> function
>
> --
> 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.
>
>

-- 
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.

Reply via email to