Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Web Development in Django


Published on

Introduction to Web development in django framework

Published in: Technology
  • If you are looking for trusted essay writing service I highly recommend ⇒⇒⇒ ⇐⇐⇐ The service I received was great. I got an A on my final paper which really helped my grade. Knowing that I can count on them in the future has really helped relieve the stress, anxiety and workload. I recommend everyone to give them a try. You'll be glad you did.
    Are you sure you want to  Yes  No
    Your message goes here

Web Development in Django

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