Your SlideShare is downloading. ×
  • Like
  • Save
Redes sociais usando python
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Redes sociais usando python

  • 1,476 views
Published

 

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • Muito bom.Obrigado por tirar minhas duvidas vou aprender Python hoje mesmo( deve ser mais facíl q Java).
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
1,476
On SlideShare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
0
Comments
1
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
  • 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

Transcript

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