Introduction to Django

Post on 01-Nov-2014

2.126 views 4 download

Tags:

description

 

Transcript of Introduction to Django

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

Who am I?

• Developer• Entrepreneur• Process Consultant• Startup Mentor

My First Love

Arranged Marriage

(The Developer Life)

Arranged Marriage

Current Affair

Agenda• Power of Python• Python - Unlimited• Django Architecture• Demo • Demo

Power of Python• Who uses Python?• Why?• Less Code (10J = 1P)

Python - Unlimited• Multi-Paradigm • Multi-Platform• Multi-Device• Multi-Language• Multi-Language

Who are you?• Knows any programming language• Built a web application• Don’t want Theory

MVC

http://offthegridchicago.com/wp-content/uploads/2012/05/logo_mtv.jpg

http://mohamedkawia.com/sites/default/files/esquema_django.png

Demo• A Simple Web Todo Application• Uses Django Built-in Admin Interface• Uses Open ID Authentication• Extend & Customize • Extend & Customize

Open ID Authentication

https://developers.google.com/accounts/images/OpenIdDiagram.png

Open ID Response• First Name• Last Name• E-Mail• Language• Language• Nick Name

Pre-requisites• Python 2.6+• Django 1.4+• django_openid_auth• Your Favorite Editor• Your Favorite Editor• (Optional)Eclipse with PyDev

Part - 01

• Create a Django Project• Enable Admin Interface

Part - 02

• Plug - in django_openid_auth• Write a Custom Authentication Logic

Part - 03

• Write a To-do Application

Part - 04

• Enhance it• Storing Audit Details• Multi - Users• Multi - Users

Talk is cheap. Show me the codeTalk is cheap. Show me the code

Questions (?)

siva@sivaa.in