and this can help too http://stackoverflow.com/questions/2119342/python-url-template-tags-giving-only-part-of-a-absolute-url-must-be-a-lack-o
2013/11/29 Rafael E. Ferrero <rafael.ferrero@gmail.com>
--2013/11/29 Vibhu Rishi <vibhu.rishi@gmail.com>
--I have the following in the html email template :The problem is that i am getting a relative url in the tempaltehi,Email is working fine.
I have a setup where I have a project details page, and I can do a "send email" which should send the email with the URL.
<A href="{% url "project.views.details" project.id %}">{{ project }}</a>
This give me a URL in the email as /projects/1 ( 1 being the project id)How do i prepend the url of the server here ? e.g. I want this to be http://localhost:8000/projects/1
Vibhu
--
Simplicity is the ultimate sophistication. - Leonardo da Vinci
Life is really simple, but we insist on making it complicated. - Confucius
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPiONwn6cHwi51fJ63oFUOLof2QmFqsSeqz2VeOM_Jxk%2BaUYGQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Rafael E. Ferrero
--
Rafael E. Ferrero
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJJc_8Wos%3D9zkYW5QyXnqOE9YCdEhd%3D2gY4fo-9Rx%2Bc5MMfmNw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment