I'm not really sure I understand your question but you don't need to jump to another view...you just need to pass the relevant objects to the mailer function and then "return render_to_response(...)." If the mailer function is already in another view, refactor the code and create a non view function that handles mail.
Cheers, Ryan On Jul 14, 6:33 am, alecs <[email protected]> wrote: > Ok, a simple question: > Are there any possibilities to call from current view another view. > For instance you have a large view and in the middle of it you need to > perform THE SAME actions which are already defined in def foo > (request,username). > Of course, you can copy the contents of foo(request,username) view > into your big view, but I don't think it's a correct solution. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

