Introduction to Django
-
Upload
sivasubramaniam-arunachalam -
Category
Technology
-
view
2.129 -
download
4
description
Transcript of Introduction to Django
![Page 1: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/1.jpg)
Introduction to Django
Sivasubramaniam Arunachalam
September 28, 2012
@sivaa_in
http://in.pycon.org/2012/funnel/pyconindia2012/26-django-introduction-demo
The web framework for perfectionists with deadlines
![Page 2: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/2.jpg)
Who am I?
• Developer• Entrepreneur• Process Consultant• Startup Mentor
![Page 3: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/3.jpg)
My First Love
Arranged Marriage
(The Developer Life)
Arranged Marriage
Current Affair
![Page 4: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/4.jpg)
Agenda• Power of Python• Python - Unlimited• Django Architecture• Demo • Demo
![Page 5: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/5.jpg)
Power of Python• Who uses Python?• Why?• Less Code (10J = 1P)
![Page 6: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/6.jpg)
Python - Unlimited• Multi-Paradigm • Multi-Platform• Multi-Device• Multi-Language• Multi-Language
![Page 7: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/7.jpg)
![Page 8: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/8.jpg)
Who are you?• Knows any programming language• Built a web application• Don’t want Theory
![Page 9: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/9.jpg)
MVC
http://offthegridchicago.com/wp-content/uploads/2012/05/logo_mtv.jpg
![Page 10: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/10.jpg)
http://mohamedkawia.com/sites/default/files/esquema_django.png
![Page 11: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/11.jpg)
Demo• A Simple Web Todo Application• Uses Django Built-in Admin Interface• Uses Open ID Authentication• Extend & Customize • Extend & Customize
![Page 12: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/12.jpg)
Open ID Authentication
https://developers.google.com/accounts/images/OpenIdDiagram.png
![Page 13: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/13.jpg)
Open ID Response• First Name• Last Name• E-Mail• Language• Language• Nick Name
![Page 14: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/14.jpg)
Pre-requisites• Python 2.6+• Django 1.4+• django_openid_auth• Your Favorite Editor• Your Favorite Editor• (Optional)Eclipse with PyDev
![Page 15: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/15.jpg)
Part - 01
• Create a Django Project• Enable Admin Interface
![Page 16: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/16.jpg)
Part - 02
• Plug - in django_openid_auth• Write a Custom Authentication Logic
![Page 17: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/17.jpg)
Part - 03
• Write a To-do Application
![Page 18: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/18.jpg)
Part - 04
• Enhance it• Storing Audit Details• Multi - Users• Multi - Users
![Page 19: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/19.jpg)
Talk is cheap. Show me the codeTalk is cheap. Show me the code
![Page 20: Introduction to Django](https://reader034.fdocuments.net/reader034/viewer/2022052301/545b79e4af79592b448b62d6/html5/thumbnails/20.jpg)
Questions (?)