Django GTALUG Presentation

725 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
725
On SlideShare
0
From Embeds
0
Number of Embeds
11
Actions
Shares
0
Downloads
7
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide




















































































  • Django GTALUG Presentation

    1. 1. Django The Web framework for perfectionists with deadlines.
    2. 2. Written in Python (http://python.org). Developed by a newspaper company.
    3. 3. Released publicly under a BSD license in July 2005
    4. 4. 3 Sept., 2008 Django 1.0 was released!
    5. 5. Django’s Goal To create complex database driven websites. Reusability of Code or Pluggability. Rapid development. DRY (Do not Repeat Yourself).
    6. 6. What does Django’s Core Include Database Abstraction Layer Views Templates URL Schema
    7. 7. MTV Model Template View
    8. 8. Django MVC Model Model Views and Templates View URL Controller
    9. 9. Model Takes Python Code
    10. 10. Model and Coverts it to SQL
    11. 11. Basic Meta URL’s
    12. 12. Also does business logic
    13. 13. Managers Post.objects.all() - Return all posts Post.objects.get(pk=1) - Return only the post with the private key of 1 Post.objects.filter(title__contains=’TLUG’) - Return the posts with ‘TLUG’ in the title.
    14. 14. Custom Managers
    15. 15. View Contains the business logic for the page
    16. 16. Generic Views Paginated Results Handles HTTP 404 for us
    17. 17. URL Controller
    18. 18. Regular Expressions
    19. 19. Template
    20. 20. Django’s Contribution Administration Interface Authentication Comments GIS (Geographic Information System) Multiple Sites Syndication Built in - RDF 0.9, RSS 2.0, and Atom Google Sitemap and more
    21. 21. Demo Time
    22. 22. Pluggable Separate applications for everything. Blog Tumblelog Photos Wiki
    23. 23. Search Django on Google Code
    24. 24. Deployment mod_python FastCGI wsgi compatible web server mod_wsgi CherryPy
    25. 25. mod_python <Location /> SetHandler python-program PythonPath “[‘/path/to/project’] + sys.path” PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE blog.settings PythonDebug Off </Location>
    26. 26. Scaling

    ×