Monday, June 25, 2012

Re: base_url() in django

@Melvyn

That's not simple way. I have to write every views to pass it on to template? It's not elegant by the way. uhm Should I create custom template tags to do it in beautiful way?

Because base_url() in codeigniter is a helper. And I don't need write it on to controllers(views in django), and pass it to view (template in django)

Anyone?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/XHqOjVujIzAJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment