Monday, June 25, 2012

Re: base_url() in django

On 25-6-2012 3:10, Raitucarp wrote:

> http://example.com
> or
> https://example.com

You also do this in your view functions, using the Site framework:
<https://docs.djangoproject.com/en/1.4/ref/contrib/sites/#getting-the-current-domain-for-full-urls>
Then pass it on to template.
--
Melvyn Sopacua


--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment