Monday, April 25, 2016

Passing parameter to template in django while using url rendering

You should have a look at Django's Messages framework. It does what you are trying to achieve in a more automatic and reusable way:

https://docs.djangoproject.com/en/1.9/ref/contrib/messages/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/884b69c6-2e5b-46ba-9dec-2501a80982e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment