Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Getting Started with Django

Getting Started with Django

Slides for tutorial @ ArabNet Digital Summit 2012 - Developer Days (Video http://www.youtube.com/watch?feature=player_detailpage&v=gxeT8vX5FFc)

Beshr Kayali

May 04, 2012
Tweet

More Decks by Beshr Kayali

Other Decks in Programming

Transcript

  1. Introduction to Python • Beautiful, clean-looking syntax • Built-in high-level

    data types: strings, lists, dictionaries, etc. A Quick Friday, May 4, 12
  2. Introduction to Python • Beautiful, clean-looking syntax • Built-in high-level

    data types: strings, lists, dictionaries, etc. • Organizational structure: functions, classes, modules, and packages A Quick Friday, May 4, 12
  3. Introduction to Python • Beautiful, clean-looking syntax • Built-in high-level

    data types: strings, lists, dictionaries, etc. • Organizational structure: functions, classes, modules, and packages • Compile on the fly to byte code A Quick Friday, May 4, 12
  4. Introduction to Python • Beautiful, clean-looking syntax • Built-in high-level

    data types: strings, lists, dictionaries, etc. • Organizational structure: functions, classes, modules, and packages • Compile on the fly to byte code • Extensions in C & C++ A Quick Friday, May 4, 12
  5. A Django Project Apps Model Controller View templates/ views.py urls.py

    models.py App templates/ views.py urls.py models.py App Friday, May 4, 12
  6. A Django Project Apps Model Controller View templates/ views.py urls.py

    models.py App templates/ views.py urls.py models.py App templates/ views.py urls.py models.py App Friday, May 4, 12
  7. Django Apps (Packages) • Pluggable, reusable, replaceable, removable • Powered

    by the community (Github, Bitbucket, Google Code) Friday, May 4, 12
  8. Django Apps (Packages) • Pluggable, reusable, replaceable, removable • Powered

    by the community (Github, Bitbucket, Google Code) • Django Packages http://djangopackages.com Friday, May 4, 12
  9. Django Apps (Packages) • Pluggable, reusable, replaceable, removable • Powered

    by the community (Github, Bitbucket, Google Code) • Django Packages http://djangopackages.com • Rating/Comments/Tutorials Friday, May 4, 12
  10. Django Apps (Packages) • Pluggable, reusable, replaceable, removable • Powered

    by the community (Github, Bitbucket, Google Code) • Django Packages http://djangopackages.com • Rating/Comments/Tutorials • Pinax! Friday, May 4, 12
  11. Open-Source Platform Built on Django agon a reusable Django points,

    positions and levels application Friday, May 4, 12
  12. Open-Source Platform Built on Django agon a reusable Django points,

    positions and levels application agon-ratings a ratings app Friday, May 4, 12
  13. Open-Source Platform Built on Django agon a reusable Django points,

    positions and levels application agon-ratings a ratings app agora an extensible forum app for Django and Pinax Friday, May 4, 12
  14. Open-Source Platform Built on Django agon a reusable Django points,

    positions and levels application agon-ratings a ratings app agora an extensible forum app for Django and Pinax aiteo a question and answer app ala StackOverflow Friday, May 4, 12
  15. Open-Source Platform Built on Django agon a reusable Django points,

    positions and levels application agon-ratings a ratings app agora an extensible forum app for Django and Pinax aiteo a question and answer app ala StackOverflow biblion the eldarion.com blog app intended to be suitable for site- level company and project blogs Friday, May 4, 12
  16. Open-Source Platform Built on Django agon a reusable Django points,

    positions and levels application agon-ratings a ratings app agora an extensible forum app for Django and Pinax aiteo a question and answer app ala StackOverflow biblion the eldarion.com blog app intended to be suitable for site- level company and project blogs brabeion Friday, May 4, 12
  17. Open-Source Platform Built on Django agon a reusable Django points,

    positions and levels application agon-ratings a ratings app agora an extensible forum app for Django and Pinax aiteo a question and answer app ala StackOverflow biblion the eldarion.com blog app intended to be suitable for site- level company and project blogs brabeion dialogos Friday, May 4, 12
  18. Open-Source Platform Built on Django agon a reusable Django points,

    positions and levels application agon-ratings a ratings app agora an extensible forum app for Django and Pinax aiteo a question and answer app ala StackOverflow biblion the eldarion.com blog app intended to be suitable for site- level company and project blogs brabeion dialogos phileo Friday, May 4, 12
  19. Open-Source Platform Built on Django agon a reusable Django points,

    positions and levels application agon-ratings a ratings app agora an extensible forum app for Django and Pinax aiteo a question and answer app ala StackOverflow biblion the eldarion.com blog app intended to be suitable for site- level company and project blogs brabeion dialogos phileo kaleo Friday, May 4, 12
  20. Open-Source Platform Built on Django agon a reusable Django points,

    positions and levels application agon-ratings a ratings app agora an extensible forum app for Django and Pinax aiteo a question and answer app ala StackOverflow biblion the eldarion.com blog app intended to be suitable for site- level company and project blogs brabeion dialogos django-friends phileo kaleo Friday, May 4, 12
  21. Open-Source Platform Built on Django agon a reusable Django points,

    positions and levels application agon-ratings a ratings app agora an extensible forum app for Django and Pinax aiteo a question and answer app ala StackOverflow biblion the eldarion.com blog app intended to be suitable for site- level company and project blogs brabeion dialogos django-friends django-friends phileo kaleo Friday, May 4, 12
  22. Open-Source Platform Built on Django agon a reusable Django points,

    positions and levels application agon-ratings a ratings app agora an extensible forum app for Django and Pinax aiteo a question and answer app ala StackOverflow biblion the eldarion.com blog app intended to be suitable for site- level company and project blogs brabeion dialogos django-friends django-friends pinax-shop phileo kaleo Friday, May 4, 12
  23. Overwhelmed? Luckily, you don't have to go through all of

    this at the beginning! Friday, May 4, 12
  24. Online Bookstore The Models Author Title Category Cover Description Book

    Book Book Book Author CharField URLField TextField Friday, May 4, 12
  25. Online Bookstore The Models Author Title Category Cover Description Book

    Book Book Book Author ForeignKey CharField URLField TextField Friday, May 4, 12
  26. Online Bookstore The Models Author Title Category Cover Description Book

    Book Book Book Author ForeignKey CharField URLField TextField Category Friday, May 4, 12
  27. Online Bookstore The Models Author Title Category Cover Description Book

    Book Book Book Author ForeignKey CharField URLField TextField Name Description Domain Category Friday, May 4, 12
  28. Online Bookstore The Models Author Title Category Cover Description Book

    Book Book Book Author ForeignKey CharField URLField TextField Name Description Domain Category CharField TextField Friday, May 4, 12
  29. Online Bookstore The Models Author Title Category Cover Description Book

    Book Book Book Author ForeignKey CharField URLField TextField Name Description Domain Category CharField TextField IntegerField Friday, May 4, 12
  30. Online Bookstore The Models Author Title Category Cover Description Book

    Book Book Book Author ForeignKey CharField URLField TextField Name Description Domain Category CharField TextField IntegerField DOMAIN_CHOICES = ((1, ‘Entertainment’) (2, ‘Fiction’), (3, ‘History’), (4, ‘Business & Finance’), (5, ‘Special Interest’)) Friday, May 4, 12
  31. Online Bookstore The Views CRUD (Create, Read, Update, Delete) Admin

    Interface Homepage View Django Friday, May 4, 12
  32. Online Bookstore The Views CRUD (Create, Read, Update, Delete) Admin

    Interface Homepage View Django Domain View Category View Friday, May 4, 12
  33. Online Bookstore The Views CRUD (Create, Read, Update, Delete) Admin

    Interface Homepage View Book View Django Domain View Category View Friday, May 4, 12
  34. Online Bookstore The Views CRUD (Create, Read, Update, Delete) Admin

    Interface Homepage View Book View Django Domain View Category View Author View Friday, May 4, 12
  35. Online Bookstore The Views CRUD (Create, Read, Update, Delete) Admin

    Interface Homepage View Book View Django Domain View Category View Author View Search View Friday, May 4, 12
  36. Online Bookstore The Views CRUD (Create, Read, Update, Delete) Admin

    Interface Homepage View Book View Django User Interface Domain View Category View Author View Search View Friday, May 4, 12
  37. Online Bookstore The Views CRUD (Create, Read, Update, Delete) Admin

    Interface Homepage View Book View Django User Interface Us Domain View Category View Author View Search View Friday, May 4, 12
  38. Online Bookstore The Templates CRUD Forms (Create, Read, Update, Delete)

    Admin Interface Homepage Template Django Friday, May 4, 12
  39. Online Bookstore The Templates CRUD Forms (Create, Read, Update, Delete)

    Admin Interface Homepage Template Django Domain Template Category Template Friday, May 4, 12
  40. Online Bookstore The Templates CRUD Forms (Create, Read, Update, Delete)

    Admin Interface Homepage Template Book Template Django Domain Template Category Template Friday, May 4, 12
  41. Online Bookstore The Templates CRUD Forms (Create, Read, Update, Delete)

    Admin Interface Homepage Template Book Template Django Domain Template Category Template Author Template Friday, May 4, 12
  42. Online Bookstore The Templates CRUD Forms (Create, Read, Update, Delete)

    Admin Interface Homepage Template Book Template Django Domain Template Category Template Author Template Search Results Template Friday, May 4, 12
  43. Online Bookstore The Templates CRUD Forms (Create, Read, Update, Delete)

    Admin Interface Homepage Template Book Template Django User Interface Domain Template Category Template Author Template Search Results Template Friday, May 4, 12
  44. Online Bookstore The Templates CRUD Forms (Create, Read, Update, Delete)

    Admin Interface Homepage Template Book Template Django User Interface Us Domain Template Category Template Author Template Search Results Template Friday, May 4, 12
  45. Online Bookstore The Templates base.html <html> <title> {% block pagetitle

    %}{% endblock %} </title> <body> # page header stuff <div id=”main”> {% block pagecontent %} {% endblock %} </div> # page footer stuff </body> </html> Friday, May 4, 12
  46. Online Bookstore The Templates <html> <title> {% block pagetitle %}{%

    endblock %} </title> <body> # page header stuff <div id=”main”> {% block pagecontent %} {% endblock %} </div> # page footer stuff </body> </html> Friday, May 4, 12
  47. Online Bookstore The Templates <html> <title> {% block pagetitle %}{%

    endblock %} </title> <body> # page header stuff <div id=”main”> {% block pagecontent %} {% endblock %} </div> # page footer stuff </body> </html> Friday, May 4, 12
  48. Online Bookstore The Templates <html> <title> {% block pagetitle %}{%

    endblock %} </title> <body> # page header stuff <div id=”main”> {% block pagecontent %} {% endblock %} </div> # page footer stuff </body> </html> Homepage Friday, May 4, 12
  49. Online Bookstore The Templates <html> <title> {% block pagetitle %}{%

    endblock %} </title> <body> # page header stuff <div id=”main”> {% block pagecontent %} {% endblock %} </div> # page footer stuff </body> </html> Friday, May 4, 12
  50. Online Bookstore The Templates <html> <title> {% block pagetitle %}{%

    endblock %} </title> <body> # page header stuff <div id=”main”> {% block pagecontent %} {% endblock %} </div> # page footer stuff </body> </html> Category: {{name}} Friday, May 4, 12
  51. Online Bookstore The Templates <html> <title> {% block pagetitle %}{%

    endblock %} </title> <body> # page header stuff <div id=”main”> {% block pagecontent %} {% endblock %} </div> # page footer stuff </body> </html> Friday, May 4, 12
  52. Online Bookstore The Templates <html> <title> {% block pagetitle %}{%

    endblock %} </title> <body> # page header stuff <div id=”main”> {% block pagecontent %} {% endblock %} </div> # page footer stuff </body> </html> Book: {{title}} Friday, May 4, 12
  53. Online Bookstore The Templates <html> <title> {% block pagetitle %}{%

    endblock %} </title> <body> # page header stuff <div id=”main”> {% block pagecontent %} {% endblock %} </div> # page footer stuff </body> </html> Friday, May 4, 12
  54. Online Bookstore The Templates <html> <title> {% block pagetitle %}{%

    endblock %} </title> <body> # page header stuff <div id=”main”> {% block pagecontent %} {% endblock %} </div> # page footer stuff </body> </html> Friday, May 4, 12
  55. Online Bookstore The Templates <html> <title> {% block pagetitle %}{%

    endblock %} </title> <body> # page header stuff <div id=”main”> {% block pagecontent %} {% endblock %} </div> # page footer stuff </body> </html> #html_code Friday, May 4, 12
  56. Online Bookstore The URLs CRUD (Create, Read, Update, Delete) Admin

    Interface Homepage URL Django Friday, May 4, 12
  57. Online Bookstore The URLs CRUD (Create, Read, Update, Delete) Admin

    Interface Homepage URL Django Domain URL Category URL Friday, May 4, 12
  58. Online Bookstore The URLs CRUD (Create, Read, Update, Delete) Admin

    Interface Homepage URL Book URL Django Domain URL Category URL Friday, May 4, 12
  59. Online Bookstore The URLs CRUD (Create, Read, Update, Delete) Admin

    Interface Homepage URL Book URL Django Domain URL Category URL Author URL Friday, May 4, 12
  60. Online Bookstore The URLs CRUD (Create, Read, Update, Delete) Admin

    Interface Homepage URL Book URL Django Domain URL Category URL Author URL Search URL Friday, May 4, 12
  61. Online Bookstore The URLs CRUD (Create, Read, Update, Delete) Admin

    Interface Homepage URL Book URL Django User Interface Domain URL Category URL Author URL Search URL Friday, May 4, 12
  62. Online Bookstore The URLs CRUD (Create, Read, Update, Delete) Admin

    Interface Homepage URL Book URL Django User Interface Us Domain URL Category URL Author URL Search URL Friday, May 4, 12