一.Email
demo/settings.py
views.py
from django.core.mail import EmailMultiAlternatives
#...
to_admin='alexexc@gmail.com'
html_content="Information"
msg=EmailMultiAlternatives('ABC',html_content,'from@server.com',[to_admin])
msg.attach_alternative(html_content,'text/html')
msg.send()
二.翻页
urls.py
views.py
from django.core.paginator import Paginator,Emptypage,InvalidPage
base.html
productos.html
SingleProducto.html