• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Web Development in Django
 

Web Development in Django

on

  • 10,431 views

Introduction to Web development in django framework

Introduction to Web development in django framework

Statistics

Views

Total Views
10,431
Views on SlideShare
8,837
Embed Views
1,594

Actions

Likes
10
Downloads
174
Comments
0

17 Embeds 1,594

http://uswaretech.com 721
http://agiliq.com 656
http://barcampbangalore.org 141
http://itsmyhub.wordpress.com 48
http://www.slideshare.net 10
http://lakshmanprasad.com 3
http://www.python.rk.edu.pl 2
http://localhost 2
http://prlog.ru 2
http://127.0.0.1 2
http://www.linkedin.com 1
http://webcache.googleusercontent.com 1
http://dev.agiliq.com 1
http://translate.googleusercontent.com 1
http://www.rkblog.rk.edu.pl 1
http://74.125.47.132 1
https://agiliq.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

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

    Web Development in Django Web Development in Django Presentation Transcript

    • Web Development, The Django Way! - An Introduction Presented at Barcamp Bangalore 8 Lakshman Prasad Usware Technologies Pvt Ltd
    • Building a Django web app.
      • What is Django.
      • Why Django?
      • Who uses Django
      • Tutorial. Go, Hack!
      • About Usware
    • What is Django
      • Python web framework
      • Enables Agile Web Development
      • Focus on programmer productivity
      • Recently hit 1.0
      • Influenced Google's App Engine Framework
      • For perfectionists with deadlines
    • Why Django
      • 1995 – Static web pages - Html
      • 2000 – Some Dynamic components – SSI
      • 2005 – Dynamic database driven web PAGES – PHP -- C#, J2EE in enterprise
      • 2009 – Dynamic Web apps, agility, time to market = ???
    • Why Django
      • The web is evolving
      • Web apps are getting complex
      • Ad-hoc solutions like PHP wont do
      • Java, .net are time consuming, 'entrprisy'.
      • New ways evolve
      • 'Python makes Programmers HAPPY' :)
      • http://www.paulgraham.com/gh.html
      • Your best bet is Django. (Or Rails)
    • Who uses Django
      • Google
      • WashingtonPost
      • WashingtonTimes
      • lawrence.com
      • Mahalo Answers
      • uswaretech.com :)
      • ...
      • Full List: http://www.djangosites.org/
    • Tutorial
      • How Django processes urls
      • You request – yoursite.com/page/
      • urls.py decides which view function to call
      • views.py decides which models to acess and manipulate. It renders the template.
      • What you need to write – urls.py, views.py, models.py, template.html
    • Awesome features of Django
      • Automatic admin interface – Full crud operations – Its not scaffolding, its the whole house
      • Convention over configuration is achieved by inferring, not auto generating
      • Plays well with other components
      • Can be deployed on a JVM
    • Tutorial - models.py
      • Defines your datamodel
      • Do not need to write all functions – Django infers them, Declarative programming
      • Sample code:
    • Tutorial - urls.py
      • Built with regularexpressions
      • Maps url patterns to functions
      • Sample code:
    • Tutorial - views.py
      • Handles requests
      • Normal function – Takes a request input, returns RESPONSE object output.
      • Sample code:
    • template.html
      • For each different type of page one template
      • Just html, with a little markup for dynamic content
      • Built for designers – seperation of concerns
      • Sample code
    • Tools – xkcd.com/378
    • Tools
      • Ipython console
      • easy_install
      • Wing IDE , Komodo IDE, PyDev, 20 more..
      • http://stackoverflow.com/questions/81584/what-ide-to-use-for-python/495355
    • Reusable Development
      • http://uswaretech.com/blog/2008/11/building-reusable-django-apps/
      • Import from the app level, not project level
      • Use named url patterns in urls.py
      • Dont Hardcode urls, in views – Ever.
      • Use reverse() function to get url patterns
      • Use {{ url }} tags in templates for <a href='' ''>
      • Templates and statics from 'appname'/ folder
    • Resources
      • Python: Stephen Holden: Learn python in 3 hours. Dive into Python http://diveintopython.org
      • Django: http://docs.django.com/ http://djangobook.com/
      • IRC: #Django #Python on freenode
      • StackOverflow: http://stackoverflow.com/questions/tagged/python
      • Django vs ROR http://news.ycombinator.com/item?id=195423
      • Mailing List: [email_address]
    • More Resources
      • http://42topics.com/blog/category/django/
      • Interviews of django creators, President, release manager, and of people moved from .net, ROR
      • http://uswaretech.com/blog
      • Using django with twitter, facebook, paypal, amazon s3, ...
      • http://svn.uswaretech.com/
      • Open Source django apps: A wiki, A blog, A todo list, Jobs, Time tracker, ...
      • http://uswaretech.com/blog/2008/11/building-reusable-django-apps/
    • About Usware
      • Build web applications with Django (& Jquery)
      • Small team of Hackers, Experts in django
      • Clients include django development agencies in US, Australia, Europe. http://uswaretech.com/projects/
      • 'Building amazing web apps'
      • Based in Hyderabad, India
      • Say me a 'Hi', anytime: [email_address]
      • Go, HACK!