thank you much, but let me ask you again in detail.
i have this html: <form action="/yfapp/clear-cache/" method="get"> <p> </p> Cache leeren: <a title="Cache leeren"><button> Cache clear </ button></a> </form> and this view: def clear_it(request): b = Command() b.clear_cache() # # here i dont know what to write... # # success_msg = 'Cache cleared successfull' return render_to_response('clicks/index.html') thanks again for help, Doni On 14 Aug., 10:53, Subhranath Chunder <subhran...@gmail.com> wrote: > Setting a simple context variable in your view would solve your purpose. > > Thanks, > Subhranath Chunder.www.subhranath.com > > > > > > > > > > On Sun, Aug 14, 2011 at 1:22 PM, doniyor <doniyor....@googlemail.com> wrote: > > Hey Guys, > > > i need a litle help in working with forms. i have a button and i want > > to output a success text above the button if the user presses the > > button. how to do this ? is there any template tag like {% if > > form.is_submitted %} or so? > > > main point is that i dont want to write another html file only to show > > the success message. > > > thanks in advance.. > > > Doni > > > -- > > 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. > > -- > Thanks, > Subhranath Chunder.www.subhranath.com -- 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.