Your SlideShare is downloading. ×
Django avanzado: Dia 2
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Django avanzado: Dia 2

277

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
277
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. DJANGO AVANZADO Día 2
  • 2. RECAPITULEMOS • “Montamos” el proyectos • Vimos e hicimos un template filter • Vimos e hicimos un inclusion template tag • Vimos los context_processors, pero no terminamos
  • 3. EN LA CLASE DE HOY • Volveremos a ver los context_processors • Explicaremos que es un middleware • Crearemos un middleware personalizado
  • 4. DÍA 2: MIDDLEWARES • Son hooks en el procesado request/response • https://docs.djangoproject.com/en/1.6/topics/http/middleware/ • https://docs.djangoproject.com/en/1.6/ref/middleware/ • Ejercicio: Creamos un middleware para contar el número de visitas a un post (vista de detail) • Ejercicio: Creamos un middleware para insertar en la template el número de visitas de un post (vista de detail)
  • 5. DÍA 2: FIN • Mañana hablaremos sobre: • Backends de autenticación • Modelos de usuarios personalizados • Señales

×