Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django domain name

from django.template.loader import render_to_string

def my_view(request):
    ...
    email_body = render_to_string(
        'my_template.txt', context, request=request)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #domain
ADD COMMENT
Topic
Name
8+3 =