Hi all,
In my view, I have a variable named 'site' which holds a value of
"www.example.com", when render in template, I use the following
method:
<a href="{{ site }}">This is an example</a>
However, when check the result, the link becomes "http://
www.mysite.com/www.example.com". while I check for the source code, it
is:
<a href="www.example.com">This is an example</a>
It seems that it is because there is no "http://";, however, when I add
it as:
<a href="http://{{ site }}">This is an example</a>
It still doesn't work. Also, there is a lot of places that I need to
manually revise. Is there any common method to resolve this problem.
Thank you very much.
--~--~---------~--~----~------------~-------~--~----~
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