Developing With 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.

1 comments

Comments 1 - 1 of 1 previous next Post a comment

  • + gamesbook gamesbook 2 months ago
    Any chance of a PDF version of this being made available for off-line use?
Post a comment
Embed Video
Edit your comment Cancel

3 Favorites

Developing With Django - Presentation Transcript

  1. Developing with Django Daniel Ryan http://dryan.com
  2. Some Background
  3. Some Background • Lawrence Journal-World
  4. Some Background • Lawrence Journal-World • Ellington
  5. Some Background • Lawrence Journal-World • Ellington • Pycon 2005
  6. Sites Powered by Django
  7. Acronyms Abound
  8. Acronyms Abound • MTV - Model • Template • View
  9. Acronyms Abound • MTV - Model • Template • View • DRY - Don’t Repeat Yourself
  10. Acronyms Abound • MTV - Model • Template • View • DRY - Don’t Repeat Yourself • ORM - Object-relational Mapping
  11. MTV vs. MVC
  12. MTV vs. MVC • Model = Model
  13. MTV vs. MVC • Model = Model • Template = View
  14. MTV vs. MVC • Model = Model • Template = View • View = Controller
  15. Installing Django
  16. Installing Django • Check out http://dryan.com/articles/snow- leopard-64bit-mamp/#python
  17. Installing Django • Check out http://dryan.com/articles/snow- leopard-64bit-mamp/#python • Python
  18. Installing Django • Check out http://dryan.com/articles/snow- leopard-64bit-mamp/#python • Python • Trunk versus Stable Release
  19. Installing Django • Check out http://dryan.com/articles/snow- leopard-64bit-mamp/#python • Python • Trunk versus Stable Release • Third Party Libraries
  20. A Django Workflow
  21. A Django Workflow • Create a project
  22. A Django Workflow • Create a project • Configure settings.py
  23. A Django Workflow • Create a project • Configure settings.py • Configure urls.py
  24. A Django Workflow • Create a project • Configure settings.py • Configure urls.py • Create the database tables
  25. A Django Workflow
  26. A Django Workflow • Create an app
  27. A Django Workflow • Create an app • Define your models
  28. A Django Workflow • Create an app • Define your models • Create the database tables
  29. A Django Workflow • Create an app • Define your models • Create the database tables • Define your urls
  30. A Django Workflow • Create an app • Define your models • Create the database tables • Define your urls • Define your views
  31. A Django Workflow • Create an app • Define your models • Create the database tables • Define your urls • Define your views • Create your templates
  32. Reduce, Reuse, Recycle Django Generic Views
  33. 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
  34. Django Templates
  35. Django Templates • Just like PHP, except the exact opposite
  36. Django Templates • Just like PHP, except the exact opposite • True separation of logic and presentation
  37. Django Templates • Just like PHP, except the exact opposite • True separation of logic and presentation • Global templates vs. app templates
  38. Django Templates • Just like PHP, except the exact opposite • True separation of logic and presentation • Global templates vs. app templates • Blocks
  39. Django Templates • Just like PHP, except the exact opposite • True separation of logic and presentation • Global templates vs. app templates • Blocks • Tags
  40. Django Templates • Just like PHP, except the exact opposite • True separation of logic and presentation • Global templates vs. app templates • Blocks • Tags • Filters
  41. Built-in Tags
  42. 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
  43. Built-in Filters
  44. 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
  45. Other Freebies django.contrib
  46. 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
  47. Resources
  48. Resources • http://docs.djangoproject.com
  49. Resources • http://docs.djangoproject.com • irc://irc.freenode.net/django
  50. Resources • http://docs.djangoproject.com • irc://irc.freenode.net/django • http://thisweekindjango.com/
  51. Resources • http://docs.djangoproject.com • irc://irc.freenode.net/django • http://thisweekindjango.com/ • http://www.djangosnippets.org/
  52. Resources • http://docs.djangoproject.com • irc://irc.freenode.net/django • http://thisweekindjango.com/ • http://www.djangosnippets.org/ • http://code.djangoproject.com/wiki/Tutorials
SlideShare Zeitgeist 2009

+ Daniel RyanDaniel Ryan Nominate

custom

247 views, 3 favs, 0 embeds more stats

Slides from my Developing with Django presentation

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 247
    • 247 on SlideShare
    • 0 from embeds
  • Comments 1
  • Favorites 3
  • Downloads 0
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