Einführung in 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

    2 Favorites

    Einführung in Django - Presentation Transcript

    1. Einführung in Django Jannis Leidel jannisleidel.com Python User Berlin, 20.11.2008
    2. Was ist Django? Python-Web-Framework für schnelle, pragmatische Lösungen Im Verlag „The Lawrence Journal-World“ für den redaktionellen Einsatz entwickelt Abstrahiert oft gebrauchte Lösungen für sich wiederholende Probleme
    3. Juhu, Abkürzungen MVC* ORM HTML* HTTP URL ETC
    4. Überblick Models, Templates, Views? Objektrelationale Abbildung Erweiterbare Templates Request und Response Handling URLs und Code verknüpfen „batteries included“
    5. Models, Templates und Views? Models: Deklaration von Datenmodellen für relationale Datenbanken Templates: Erweiterbares System zur Anzeige der Daten (z.B. HTML) Views: Request verarbeitende, Response zurückgebende Funktionen
    6. Objektrelationale Abb. Datenbankabfragen ohne SQL, mit API Backends für PostgreSQL, MySQL, SQLite, Oracle, MS SQL* und andere many-to-many, many-to-one, one-to-one from myapp.models import MyModel #SELECT * FROM myapp_mymodel WHERE id=1; m = MyModel.objects.get(id=1)
    7. Erweiterbare Templates Einfache Vererbung, erweiterbar mit Tags, Filtern und Context Prozessoren Webdesigner-freundlich {% extends \"base.html\" %} {% block content %} <h1>{{ title|upper }}</h1> {% endblock %}
    8. Request und Response Requests parsen, Responses generieren Zugriff auf GET, POST, COOKIES, FILES, ... from django import http def hello(request): who = request.GET.get( ‘name‘, ‘world‘) return http.HttpResponse(who)
    9. URLs und Code verknüpfen Reguläre Ausdrücke verweisen auf Python-Funktionen Saubere URLs urlpatterns = patterns(‘myapp.views‘ (r'^page/$', 'all'), (r'^page/(\\d+)/$', 'detail'), )
    10. „batteries included“ Automatisches Admin, Formular- Handling, Authentifizierung, Comments, Internationalisierung, Feeds, Sitemaps, GIS, Caching, Sessions, Uploads, ... Jython, IronPython, PyPy, AppEngine 500+ django-* Anwendungen bei Google Code, Github und Bitbucket, ~50 im Python Package Index
    11. Tutorial http://j03.de/talks/2008-11-django-tutorial-pub/

    + Jannis LeidelJannis Leidel, 11 months ago

    custom

    636 views, 2 favs, 0 embeds more stats

    Meine klitzekleine (theoretische) Einführung in Dj more

    More info about this document

    CC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike License

    Go to text version

    • Total Views 636
      • 636 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 2
    • Downloads 4
    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

    Tags