Developing With Django
Upcoming SlideShare
Loading in...5
×
 

Developing With Django

on

  • 3,603 views

Slides from my Developing with Django presentation

Slides from my Developing with Django presentation

Statistics

Views

Total Views
3,603
Views on SlideShare
3,592
Embed Views
11

Actions

Likes
7
Downloads
37
Comments
1

1 Embed 11

http://www.slideshare.net 11

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Developing With Django Developing With Django Presentation Transcript

  • Developing with Django Daniel Ryan http://dryan.com
  • Some Background
  • Some Background • Lawrence Journal-World View slide
  • Some Background • Lawrence Journal-World • Ellington View slide
  • Some Background • Lawrence Journal-World • Ellington • Pycon 2005
  • Sites Powered by Django
  • Acronyms Abound
  • Acronyms Abound • MTV - Model • Template • View
  • Acronyms Abound • MTV - Model • Template • View • DRY - Don’t Repeat Yourself
  • Acronyms Abound • MTV - Model • Template • View • DRY - Don’t Repeat Yourself • ORM - Object-relational Mapping
  • MTV vs. MVC
  • MTV vs. MVC • Model = Model
  • MTV vs. MVC • Model = Model • Template = View
  • MTV vs. MVC • Model = Model • Template = View • View = Controller
  • Installing Django
  • Installing Django • Check out http://dryan.com/articles/snow- leopard-64bit-mamp/#python
  • Installing Django • Check out http://dryan.com/articles/snow- leopard-64bit-mamp/#python • Python
  • Installing Django • Check out http://dryan.com/articles/snow- leopard-64bit-mamp/#python • Python • Trunk versus Stable Release
  • Installing Django • Check out http://dryan.com/articles/snow- leopard-64bit-mamp/#python • Python • Trunk versus Stable Release • Third Party Libraries
  • A Django Workflow
  • A Django Workflow • Create a project
  • A Django Workflow • Create a project • Configure settings.py
  • A Django Workflow • Create a project • Configure settings.py • Configure urls.py
  • A Django Workflow • Create a project • Configure settings.py • Configure urls.py • Create the database tables
  • A Django Workflow
  • A Django Workflow • Create an app
  • A Django Workflow • Create an app • Define your models
  • A Django Workflow • Create an app • Define your models • Create the database tables
  • A Django Workflow • Create an app • Define your models • Create the database tables • Define your urls
  • A Django Workflow • Create an app • Define your models • Create the database tables • Define your urls • Define your views
  • A Django Workflow • Create an app • Define your models • Create the database tables • Define your urls • Define your views • Create your templates
  • Reduce, Reuse, Recycle Django Generic Views
  • Reduce, Reuse, Recycle Django Generic Views • direct_to_template • archive_today • redirect_to • object_detail (date based) • archive_index • object_list • archive_year • object_detail (list based) • archive_month • create_object • archive_week • update_object • archive_day • delete_object
  • Django Templates
  • Django Templates • Just like PHP, except the exact opposite
  • Django Templates • Just like PHP, except the exact opposite • True separation of logic and presentation
  • Django Templates • Just like PHP, except the exact opposite • True separation of logic and presentation • Global templates vs. app templates
  • Django Templates • Just like PHP, except the exact opposite • True separation of logic and presentation • Global templates vs. app templates • Blocks
  • Django Templates • Just like PHP, except the exact opposite • True separation of logic and presentation • Global templates vs. app templates • Blocks • Tags
  • Django Templates • Just like PHP, except the exact opposite • True separation of logic and presentation • Global templates vs. app templates • Blocks • Tags • Filters
  • Built-in Tags
  • Built-in Tags • autoescape • for • now • block • for ... empty • regroup • comment • if • spaceless • cycle • ifchanged • ssi • debug • ifequal • templatetag • extends • ifnotequal • url • filter • include • widthratio • firstof • load • with
  • Built-in Filters
  • Built-in Filters • add • escape • length • random • title • addslashes • escapejs • length_is • removetags • truncatewords • capfirst • filesizeformat • linebreaks • rjust • truncatewords_ html • center • first • linebreaksbr • safe • unordered_list • cut • fix_ampersand • linenumbers • safeseq s • upper • date • ljust • slice • floatformat • urlencode • default • lower • slugify • force_escape • urlize • default_if_none • make_list • stringformat • get_digit • urlizetrunc • dictsort • phone2numeri • striptags • iriencode c • wordcount • dictsortreverse • time d • join • pluralize • wordwrap • timesince • divisibleby • last • pprint • yesno • timeuntil
  • Other Freebies django.contrib
  • Other Freebies django.contrib • Admin site • E-mail (sending) • Sessions • Authentication • Flatpages • Signals • Cache system • Humanize • Sitemaps • Conditional content • Internationalization • Sites processing • Jython support • Syndication feeds (RSS/ • Comments Atom) • “Local flavor” • Content types • Unicode in Django • Pagination • Cross Site Request • Web design helpers Forgery protection • Redirects • Databrowse • Serialization
  • Resources
  • Resources • http://docs.djangoproject.com
  • Resources • http://docs.djangoproject.com • irc://irc.freenode.net/django
  • Resources • http://docs.djangoproject.com • irc://irc.freenode.net/django • http://thisweekindjango.com/
  • Resources • http://docs.djangoproject.com • irc://irc.freenode.net/django • http://thisweekindjango.com/ • http://www.djangosnippets.org/
  • Resources • http://docs.djangoproject.com • irc://irc.freenode.net/django • http://thisweekindjango.com/ • http://www.djangosnippets.org/ • http://code.djangoproject.com/wiki/Tutorials