REDES SOCIAIS<br />USANDO<br />PYTHON<br />
@<br />CONTATO<br />YURIMALHEIROS<br />.COM<br />
@<br />CONTATO<br />YURIMALHEIROS<br />.COM<br />
REDES<br />SOCIAIS<br />
DESIGN<br />MONTAGEM<br />PROGRAMAÇÃO<br />
DESIGN<br />
?<br />
?<br />
ok<br />
PROGRAMAÇÃO<br />
PYTHON<br />DJANGO<br />
Python é<br />SIMPLES<br />
Django é<br />POPULAR<br />
José da Silva<br />30 anos<br />Programador<br />Amigos<br />
Busca<br />
Login<br />
MODEL<br />VIEW<br />CONTROLLER<br />
MODEL<br />TEMPLATE<br />CONTROLLER<br />
MODEL<br />TEMPLATE<br />VIEW<br />
class Profile(models.Model): <br />	name = models.CharField(max_length=200) <br />	birthday = models.DateField()<br />job ...
defindex(request):<br />photos = Photo.objects.all()<br />render_to_response(‘photos/index.html’,<br />	{‘photos’ : photos...
defindex(request):<br />photos = Photo.objects.all()<br />render_to_response(‘photos/index.html’,<br />	{‘photos’ : photos...
defindex(request):<br />photos = Photo.objects.all()<br />render_to_response(‘photos/index.html’,<br />	{‘photos’ : photos...
defindex(request):<br />photos = Photo.objects.all()<br />render_to_response(‘photos/index.html’,<br />	{‘photos’ : photos...
defindex(request):<br />photos = Photo.objects.all()<br />render_to_response(‘photos/index.html’,<br />{‘photos’ : photos}...
MONTAGEM<br />
LAYOUT<br />CÓDIGO<br />
HTML<br />CSS<br />CÓDIGO<br />
DJANGO TEMPLATE<br />CSS<br />CÓDIGO<br />
<h1>Fotos</h1><br />{%forphoto inphotos %}<br />    <h2>{{photo.title}}</h2><br />   <img src=“{{photo.image.url}}” /><br ...
<h1>Fotos</h1><br />{%forphoto inphotos %}<br />    <h2>{{photo.title}}</h2><br />   <img src=“{{photo.image.url}}” /><br ...
AMIGOS<br />RECADOS<br />INDEX<br />BASE<br />
COMO TRABALHAMOS<br />
tarefas<br />INDEPENDENTES<br />
DÚVIDAS?<br />
Upcoming SlideShare
Loading in …5
×

Redes sociais usando python

2,157 views

Published on

Published in: Technology
1 Comment
2 Likes
Statistics
Notes
  • Muito bom.Obrigado por tirar minhas duvidas vou aprender Python hoje mesmo( deve ser mais facíl q Java).
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
2,157
On SlideShare
0
From Embeds
0
Number of Embeds
273
Actions
Shares
0
Downloads
0
Comments
1
Likes
2
Embeds 0
No embeds

No notes for slide
  • EXEMPLO DE MODEL
  • EXEMPLO DE VIEW
  • EXEMPLO DE VIEW
  • EXEMPLO DE VIEW
  • EXEMPLO DE VIEW
  • EXEMPLO DE VIEW
  • EXEMPLO DE TEMPLATE
  • EXEMPLO DE TEMPLATE
  • Herança e composicao de templates
  • Herança e composicao de templates
  • Herança e composicao de templates
  • Herança e composicao de templates
  • Herança e composicao de templates
  • Redes sociais usando python

    1. 1. REDES SOCIAIS<br />USANDO<br />PYTHON<br />
    2. 2. @<br />CONTATO<br />YURIMALHEIROS<br />.COM<br />
    3. 3. @<br />CONTATO<br />YURIMALHEIROS<br />.COM<br />
    4. 4.
    5. 5. REDES<br />SOCIAIS<br />
    6. 6. DESIGN<br />MONTAGEM<br />PROGRAMAÇÃO<br />
    7. 7. DESIGN<br />
    8. 8. ?<br />
    9. 9. ?<br />
    10. 10. ok<br />
    11. 11.
    12. 12. PROGRAMAÇÃO<br />
    13. 13. PYTHON<br />DJANGO<br />
    14. 14. Python é<br />SIMPLES<br />
    15. 15. Django é<br />POPULAR<br />
    16. 16.
    17. 17. José da Silva<br />30 anos<br />Programador<br />Amigos<br />
    18. 18.
    19. 19. Busca<br />
    20. 20. Login<br />
    21. 21. MODEL<br />VIEW<br />CONTROLLER<br />
    22. 22. MODEL<br />TEMPLATE<br />CONTROLLER<br />
    23. 23. MODEL<br />TEMPLATE<br />VIEW<br />
    24. 24. class Profile(models.Model): <br /> name = models.CharField(max_length=200) <br /> birthday = models.DateField()<br />job = models.CharField(max_length=200)<br />class Photo(models.Model): <br /> title = models.CharField(max_length=200) <br /> image = models.ImageField(upload_to=‘img’)<br />votes = models.IntegerField()<br />
    25. 25. defindex(request):<br />photos = Photo.objects.all()<br />render_to_response(‘photos/index.html’,<br /> {‘photos’ : photos})<br />
    26. 26. defindex(request):<br />photos = Photo.objects.all()<br />render_to_response(‘photos/index.html’,<br /> {‘photos’ : photos})<br />
    27. 27. defindex(request):<br />photos = Photo.objects.all()<br />render_to_response(‘photos/index.html’,<br /> {‘photos’ : photos})<br />
    28. 28. defindex(request):<br />photos = Photo.objects.all()<br />render_to_response(‘photos/index.html’,<br /> {‘photos’ : photos})<br />
    29. 29. defindex(request):<br />photos = Photo.objects.all()<br />render_to_response(‘photos/index.html’,<br />{‘photos’ : photos})<br />
    30. 30. MONTAGEM<br />
    31. 31. LAYOUT<br />CÓDIGO<br />
    32. 32. HTML<br />CSS<br />CÓDIGO<br />
    33. 33. DJANGO TEMPLATE<br />CSS<br />CÓDIGO<br />
    34. 34. <h1>Fotos</h1><br />{%forphoto inphotos %}<br /> <h2>{{photo.title}}</h2><br /> <img src=“{{photo.image.url}}” /><br /> votos: {{photo.votes}}<br />{% endfor %}<br />
    35. 35. <h1>Fotos</h1><br />{%forphoto inphotos %}<br /> <h2>{{photo.title}}</h2><br /> <img src=“{{photo.image.url}}” /><br /> votos: {{photo.votes}}<br />{% endfor %}<br />
    36. 36.
    37. 37.
    38. 38.
    39. 39.
    40. 40.
    41. 41. AMIGOS<br />RECADOS<br />INDEX<br />BASE<br />
    42. 42. COMO TRABALHAMOS<br />
    43. 43. tarefas<br />INDEPENDENTES<br />
    44. 44. DÚVIDAS?<br />

    ×