Share
Embed
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
Transcript
157 slides
-
Introduction to Python • Beautiful, clean-looking syntax • Built-in high-level
data types: strings, lists, dictionaries, etc. A Quick Friday, May 4, 12 -
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 -
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 -
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 -
A Django Project Translated into Django Model Controller View models.py
Friday, May 4, 12 -
A Django Project Translated into Django Model Controller View urls.py
models.py Friday, May 4, 12 -
A Django Project Translated into Django Model Controller View views.py
urls.py models.py Friday, May 4, 12 -
A Django Project Translated into Django Model Controller View templates/
views.py urls.py models.py Friday, May 4, 12 -
A Django Project Apps Model Controller View templates/ views.py urls.py
models.py Friday, May 4, 12 -
A Django Project Apps Model Controller View templates/ views.py urls.py
models.py App Friday, May 4, 12 -
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 -
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 -
Django Apps (Packages) • Pluggable, reusable, replaceable, removable • Powered
by the community (Github, Bitbucket, Google Code) Friday, May 4, 12 -
Django Apps (Packages) • Pluggable, reusable, replaceable, removable • Powered
by the community (Github, Bitbucket, Google Code) • Django Packages http://djangopackages.com Friday, May 4, 12 -
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 -
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 -
Open-Source Platform Built on Django agon a reusable Django points,
positions and levels application Friday, May 4, 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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
Overwhelmed? Luckily, you don't have to go through all of
this at the beginning! Friday, May 4, 12 -
my_site/ __init__.py manage.py urls.py settings.py my_app/ A Django Project The
Structure Friday, May 4, 12 -
my_site/ __init__.py manage.py urls.py settings.py my_app/ models.py A Django Project
The Structure Friday, May 4, 12 -
my_site/ __init__.py manage.py urls.py settings.py my_app/ models.py views.py A Django
Project The Structure Friday, May 4, 12 -
my_site/ __init__.py manage.py urls.py settings.py my_app/ models.py views.py admin.py A
Django Project The Structure Friday, May 4, 12 -
Online Bookstore The Models Author Book Book Book Book Author
Friday, May 4, 12 -
Online Bookstore The Models Author Title Category Cover Description Book
Book Book Book Author Friday, May 4, 12 -
Online Bookstore The Models Author Title Category Cover Description Book
Book Book Book Author CharField URLField TextField Friday, May 4, 12 -
Online Bookstore The Models Author Title Category Cover Description Book
Book Book Book Author ForeignKey CharField URLField TextField Friday, May 4, 12 -
Online Bookstore The Models Author Title Category Cover Description Book
Book Book Book Author ForeignKey CharField URLField TextField Category Friday, May 4, 12 -
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 -
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 -
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 -
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 -
Online Bookstore The Models Sync my DB for me please,
Friday, May 4, 12 -
Online Bookstore The Views CRUD (Create, Read, Update, Delete) Admin
Interface Friday, May 4, 12 -
Online Bookstore The Views CRUD (Create, Read, Update, Delete) Admin
Interface Django Friday, May 4, 12 -
Online Bookstore The Views CRUD (Create, Read, Update, Delete) Admin
Interface Homepage View Django Friday, May 4, 12 -
Online Bookstore The Views CRUD (Create, Read, Update, Delete) Admin
Interface Homepage View Django Domain View Category View Friday, May 4, 12 -
Online Bookstore The Views CRUD (Create, Read, Update, Delete) Admin
Interface Homepage View Book View Django Domain View Category View Friday, May 4, 12 -
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 -
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 -
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 -
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 -
Online Bookstore The Templates CRUD Forms (Create, Read, Update, Delete)
Admin Interface Friday, May 4, 12 -
Online Bookstore The Templates CRUD Forms (Create, Read, Update, Delete)
Admin Interface Django Friday, May 4, 12 -
Online Bookstore The Templates CRUD Forms (Create, Read, Update, Delete)
Admin Interface Homepage Template Django Friday, May 4, 12 -
Online Bookstore The Templates CRUD Forms (Create, Read, Update, Delete)
Admin Interface Homepage Template Django Domain Template Category Template Friday, May 4, 12 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
Online Bookstore The URLs CRUD (Create, Read, Update, Delete) Admin
Interface Friday, May 4, 12 -
Online Bookstore The URLs CRUD (Create, Read, Update, Delete) Admin
Interface Django Friday, May 4, 12 -
Online Bookstore The URLs CRUD (Create, Read, Update, Delete) Admin
Interface Homepage URL Django Friday, May 4, 12 -
Online Bookstore The URLs CRUD (Create, Read, Update, Delete) Admin
Interface Homepage URL Django Domain URL Category URL Friday, May 4, 12 -
Online Bookstore The URLs CRUD (Create, Read, Update, Delete) Admin
Interface Homepage URL Book URL Django Domain URL Category URL Friday, May 4, 12 -
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 -
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 -
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 -
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