I managed to render it properly: html_template = loader.get_template('emails/confirm_account.html') email_vars = Context({'registration_hash' : '123456', 'new_email' : 'm...@mail.com'})
What do You mean "current Site object"? On 24 Lis, 14:34, Jason Mayfield <jwmayfi...@gmail.com> wrote: > Pass the current Site object into the template as part of the context. Then > you can do: {{ current_site.domain }}{% url account_activation %} for the > absolute url. > > On Nov 24, 2010, at 8:16 AM, robos85 wrote: > > > > > > > > > > > small correction not {{ url }} but {% url %} ? > > > On 24 Lis, 14:01, robos85 <prog...@gmail.com> wrote: > >> Hi, > >> I'm writing an email sending module based on on templates. I have no > >> idea how to put absolute url to my template (for > >> examplehttp://domain.com/account/activate/2). I have special url for this, > >> named account_activation. > >> I know how to pass variables but how to create that url? > >> Shouls I use {{ url }} tag? It creates relative paths starting > >> with / :/ > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to django-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > django-users+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/django-users?hl=en. > > - Jason -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.