Web Development in Django

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    3 Favorites

    Web Development in Django - Presentation Transcript

    1. Web Development, The Django Way! - An Introduction Presented at Barcamp Bangalore 8 Lakshman Prasad Usware Technologies Pvt Ltd
    2. Building a Django web app.
      • What is Django.
      • Why Django?
      • Who uses Django
      • Tutorial. Go, Hack!
      • About Usware
    3. 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
    4. 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 = ???
    5. 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)
    6. Who uses Django
      • Google
      • WashingtonPost
      • WashingtonTimes
      • lawrence.com
      • Mahalo Answers
      • uswaretech.com :)
      • ...
      • Full List: http://www.djangosites.org/
    7. 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
    8. 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
    9. Tutorial - models.py
      • Defines your datamodel
      • Do not need to write all functions – Django infers them, Declarative programming
      • Sample code:
    10. Tutorial - urls.py
      • Built with regularexpressions
      • Maps url patterns to functions
      • Sample code:
    11. Tutorial - views.py
      • Handles requests
      • Normal function – Takes a request input, returns RESPONSE object output.
      • Sample code:
    12. 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
    13. Tools – xkcd.com/378
    14. Tools
      • Ipython console
      • easy_install
      • Wing IDE , Komodo IDE, PyDev, 20 more..
      • http://stackoverflow.com/questions/81584/what-ide-to-use-for-python/495355
    15. 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
    16. 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]
    17. 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/
    18. 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!

    + scorpion032scorpion032, 9 months ago

    custom

    2278 views, 3 favs, 5 embeds more stats

    Introduction to Web development in django framework more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 2278
      • 1603 on SlideShare
      • 675 from embeds
    • Comments 0
    • Favorites 3
    • Downloads 48
    Most viewed embeds
    • 582 views on http://uswaretech.com
    • 90 views on http://barcampbangalore.org
    • 1 views on http://74.125.47.132
    • 1 views on http://www.rkblog.rk.edu.pl
    • 1 views on http://www.python.rk.edu.pl

    more

    All embeds
    • 582 views on http://uswaretech.com
    • 90 views on http://barcampbangalore.org
    • 1 views on http://74.125.47.132
    • 1 views on http://www.rkblog.rk.edu.pl
    • 1 views on http://www.python.rk.edu.pl

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories