hello,

you can just add a context variable 'submitted' to your context in
your view's get_context_data

konstantin

On Aug 15, 4:06 am, doniyor <doniyor....@googlemail.com> wrote:
> Hi There,
>
> I am heading well now, but have still some confusing things here..
>
> this is my html file, where i want to get a success message after the
> form is submitted:
>
> __________________________________________________________________
> <form action="/yfapp/./" method="get">
>         {% load forms %}
>         {% if submitted %}
>                 {{ success }}
>         {% else %}
>             <p>&nbsp;</p>
>         {% endif %}
>         Clear cache: <a title="Cache leeren"><button> Cache leeren </button></
> a>
> </form>
> ---------------------------------------------------------------------------------------------------------------------
> this is my def  in templatetags folder:
> ________________________________________
> success = 'Cache erfolgreich geleert'
>
> def submitted(self):
>     if request.method == 'GET':
>         return True
>
> register.tag('submitted', submitted)
> ________________________________________
>
> BUT i dont see anything after submission of the form. where is my
> mistake, can you please help ?,
>
> 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.

Reply via email to