On Fri, Feb 27, 2009 at 12:15 AM, Bobby Roberts <tchend...@gmail.com> wrote:
> > Is it possible to execute a view from within a view? > > I've got a situation in my current view where if a condition is met, I > need to branch control to a new view and send it new parameters. I > have the following but it doesn't work: > > Showdetails(request,slug=currentslug,selfbidder=1) > > I have read the docs and can't find any examples of how to call a view > from a view. Can someone point me to the right docs or show me what > i'm doing wrong? > > > Thanks in advance > > > > > You just call it, views are normal python functions, that being said it is often better to redirect where possible(or sensible). Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---