Django

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    Django - Presentation Transcript

    1. Django Ing. Adrian Catalan Universidad Galileo @ykro
    2. Que es Django?
    3. Minimizamos ● Esfuerzo ● Desperdicio de tiempo ● Complejidad ● Dificultad ● & mas
    4. :)
    5. pero...como? ● Automatizando “las cosas” que tienen la mayoria de proyectos en comun. ● Y permitiendo trabajar en lo que los diferencia
    6. La metafora ● Una construccion
    7. Python...quien usa eso?
    8. Y que tiene Python? ● Totalmente orientado a objetos ● Threads nativos ● Multi-Paradigma ● Escalabilidad
    9. Y Rails? ● I <3 RoR ● Pero...
    10. MVC
    11. La aproximacion de Django
    12. Tutorial
    13. startproject ● django-admin.py startproject barcampgt barcampgt __init__.py manage.py settings.py urls.py
    14. startapp cd barcampgt python manage.py startapp participantes barcampgt/participantes __init__.py models.py templates views.py
    15. runserver manage.py runserver
    16. Interfaz administrativa ● Modificar INSTALLED_APPS en settings.py ● python manage.py syncdb
    17. ElModelo class Participante(models.Model): nombre = models.CharField(max_length=200) correo = models.EmailField()
    18. Activandolo ● Modificar INSTALLED_APPS en settings.py ● python manage.py syncdb
    19. Admin para participantes from barcampgt.participantes.models import Participante from django.contrib import admin class ParticipanteAdmin(admin.ModelAdmin): list_display = ('nombre','correo') admin.site.register(Participante,ParticipanteAdmin)
    20. view from barcampgt.participantes.models import Participante from django.http import HttpResponse def index(request): list = Participante.objects.all().order_by('nombre')[:5] output = '<br/> '.join([obj.nombre for obj in list]) return HttpResponse(output)
    21. urls (r'^lista/$','barcampgt.participantes.views.index')
    22. Preguntas || kthxbye
    SlideShare Zeitgeist 2009

    + ykroykro Nominate

    custom

    207 views, 1 favs, 0 embeds more stats

    Presentacion sobre Django para el barcamp en Esquip more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 207
      • 207 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 2
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories