Your SlideShare is downloading. ×
0
Django
Django
Django
Django
Django
Django
Django
Django
Django
Django
Django
Django
Django
Django
Django
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Django

1,963

Published on

An introduction to Django Framework, version 1.1 - History, main features, weakness, next improvements.

An introduction to Django Framework, version 1.1 - History, main features, weakness, next improvements.

0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,963
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
56
Comments
0
Likes
3
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Django Project 1.1 An Introduction to django Vinicius Ronconi - vinicius.ronconi@gmail.com
  • 2. Schedule
      • What is django?
      • History
      • Who uses django?
      • Main features
      • What must be improved
      • Django Structure
      •   Next steps
      • References & Other presentations
    Vinicius Ronconi - vinicius.ronconi@gmail.com
  • 3. What is django?
      • A Web Development Framework designed to increase productivity by automating repetitive tasks
      • Django provides high-level abstractions of common patterns, shortcuts for frequent programming tasks
    Vinicius Ronconi - vinicius.ronconi@gmail.com
  • 4. History
      • Named after the jazz guitarrist Django Reinhardt, from the 1930s to 1950s.
      •   Created by World Online, an online newspaper in 2003.
      • Became open source in 2005.
      • Created to meet fast deadlines of journalism websites, whilst at the same time keeping the development process clean and maintainable.
    Vinicius Ronconi - vinicius.ronconi@gmail.com
  • 5. Who uses django?
      • NatGeo
      • Michael Moore
      • Whashington Post
      • New York Times
      •   NEBULA Project (NASA)
      • Google App Engine
      • Rede Globo
      • VMWare
    Vinicius Ronconi - vinicius.ronconi@gmail.com
  • 6. Main Features
      • Automatic Admin Interface
      • Template Language, including inheritance
      • Internationalization
      • Elegant URL's
      • Object-Relational Mapper
      • Cache Framework
      • Testing Framework
      • Built-in RSS / Atom
      • Built-in Site Maps
      • Geospacial Content (via GeoDjango) 
      • Flatpages 
      • Lots of extensions
    Vinicius Ronconi - vinicius.ronconi@gmail.com
  • 7. What must be improved
      • Built-in migrations
      • CMS Extras lacking (wysiwyg, file browser)
      • No integrated deployment toolchain
      • REST/SOAP support lacking
      • No support for multiple databases (will be solved in v1.2)
    Vinicius Ronconi - vinicius.ronconi@gmail.com
  • 8. Django Structure - Directory Structure
      • myproject/
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
        • myapp/
    __init__.py Tells Python that this directory should be considered a Python package. It can be empty or contain package initialiation code. manage.py A command-line utility that lets you interact with this Django project in various ways settings.py Settings/configuration for this project. urls.py a "table of contents" of a Django-powered site. Vinicius Ronconi - vinicius.ronconi@gmail.com
  • 9. Django Structure - Directory Structure
      • Files inside myapp:
    __init__.py Tells Python that this directory should be considered a Python package. It can be empty or contain package initialiation code. models.py Defines the content of the Model Layer. views.py Contains the code required to process the request. This file can be renamed, but it is recommended to keep this name. Vinicius Ronconi - vinicius.ronconi@gmail.com
  • 10. Django Structure - Projects and Applications
      • An App is a Web Application that does something.
      • A Project is a collection of configuration and apps for a particular Web site.
      • A project can contain multiple apps. An app can be in multiple projects.
    Vinicius Ronconi - vinicius.ronconi@gmail.com
  • 11. Django Structure - MTV
      • MTV - Model, Template, View
      • Model is the Database access layer
        • How to Access data
        • How to validate it
        • Which behaviour it has
        • The relationship between data
      • Template is the presentation layer
        • How the data must be displayed to the users?
      • View is the business logic layer
        • Access the model and defers to appropriate template.
        • It is the bridge between Model and Template.
    Vinicius Ronconi - vinicius.ronconi@gmail.com
  • 12. Next Steps
      • Django 1.2 launched on May, 17th
        • CSRF Protection improvements
        • Internationalization improvements
        • Allow multiple databases
        • Email backends (configure how django sends emails)
        • Template caching
        • Object Level permissions 
      • Django 1.2 with Python 2.6 is already supported by WebFaction.
      • See more at http://docs.djangoproject.com/en/dev/releases/1.2/
    Vinicius Ronconi - vinicius.ronconi@gmail.com
  • 13. References
      • Django Project Official Website
      • Django Book
      • Django Snippets
      • Aprendendo Django no Planeta Terra (pt-br)
    Vinicius Ronconi - vinicius.ronconi@gmail.com
  • 14. Other presentations
      • Jason Davies
      • wiremine
      • Jacob Kaplan-Moss
      • Igor Sobreira (pt-br)
    Vinicius Ronconi - vinicius.ronconi@gmail.com
  • 15.
      • Questions ?
    Vinicius Ronconi - vinicius.ronconi@gmail.com

×