Actually, I was PHP developer, I use codeigniter as framework. In codeigniter, we can call helper url functions base_url() and it will return absolute domain url such:
http://example.com
or
https://example.com
It is automatically, we even don't need to create custom function, because base_url() is a helper function. I call the base_url() function just in views (in django context it will be template).
So, what 'function' should I call in django template to return absolute path domain such base_url() in Codeigniter? --
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/-/FwpDcOVfaRUJ.
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment