Herramientas de usuario

Herramientas del sitio


wiki2:python:django:others

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anterior Revisión previa
Próxima revisión
Revisión previa
wiki2:python:django:others [2020/10/10 11:07]
alfred [For using S3 or an alterantive service]
wiki2:python:django:others [2020/10/31 20:16] (actual)
Línea 27: Línea 27:
 # Delete a session value  # Delete a session value 
 del request.session['​my_car'​] del request.session['​my_car'​]
 +</​code>​
 +
 +
 +===== Sending mails =====
 +You can send mails with:
 +<​code>​
 +from django.core.mail import send_mail
 +send_mail('​subject',​ '​message',​ 'Dont Reply <​do_not_reply@domain.com>',​ ['​youremail@example.com'​])
 </​code>​ </​code>​
  
Línea 240: Línea 248:
   - Add the settings.   - Add the settings.
   - Configure models.   - Configure models.
 +  - Remind that forms in template must have the attribute ''​enctype=“multipart/​form-data”''​.
  
  
wiki2/python/django/others.1602328054.txt.gz · Última modificación: 2020/10/10 12:07 (editor externo)