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

Like this? Share it with your network

Share

Developing With Django

on

  • 3,631 views

Slides from my Developing with Django presentation

Slides from my Developing with Django presentation

Statistics

Views

Total Views
3,631
Views on SlideShare
3,620
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 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