SlideShare uma empresa Scribd logo
1 de 32
Welcome to the Django!
What's Django? ,[object Object],[object Object],[object Object],  "...and not a CMS System."
Origins... Django Reinhardt
Origins... Lawrence-Journal World
Origins... ,[object Object],[object Object],[object Object],* http://en.wikipedia.org/wiki/BSD_licenses
www.djangoproject.com
Skills ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Principles  (...or philosophies) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object]
MVC? No... MTV!
MVC vs. MTV ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Overview
Go to the Project!
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Setting up...
Create a Project... ,[object Object],[object Object],[object Object],[object Object]
Setup files ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Let's to do something... ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Development server ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Others Servers... ,[object Object],[object Object],[object Object],[object Object],[object Object]
Create the app ,[object Object],[object Object],[object Object],[object Object]
Setup files ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
App x Project ,[object Object],[object Object],[object Object],[object Object]
Create the model ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Setting the model classes to admin ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Add the app to the admin ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Setting the urls ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Setting the templates ,[object Object],[object Object],[object Object],[object Object],[object Object]
Look your app! ,[object Object],[object Object],[object Object],[object Object]
Recap... ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Sites powered by Python/Django
 
Contact/follow us... ,[object Object],[object Object],[object Object],[object Object],[object Object]

Mais conteúdo relacionado

Mais procurados

Gigigo Rails Workshop
Gigigo Rails WorkshopGigigo Rails Workshop
Gigigo Rails WorkshopAlex Rupérez
 
How Danga::Socket handles asynchronous processing and how to write asynchrono...
How Danga::Socket handles asynchronous processing and how to write asynchrono...How Danga::Socket handles asynchronous processing and how to write asynchrono...
How Danga::Socket handles asynchronous processing and how to write asynchrono...Gosuke Miyashita
 
Search 500-video-clips
Search 500-video-clipsSearch 500-video-clips
Search 500-video-clipsphanhung20
 
WP Weekend #2 - Corcel, aneb WordPress přes Laravel
WP Weekend #2 - Corcel, aneb WordPress přes LaravelWP Weekend #2 - Corcel, aneb WordPress přes Laravel
WP Weekend #2 - Corcel, aneb WordPress přes LaravelBrilo Team
 
Locarise,reagent and JavaScript Libraries
Locarise,reagent and JavaScript LibrariesLocarise,reagent and JavaScript Libraries
Locarise,reagent and JavaScript LibrariesIkuru Kanuma
 
What The Flask? and how to use it with some Google APIs
What The Flask? and how to use it with some Google APIsWhat The Flask? and how to use it with some Google APIs
What The Flask? and how to use it with some Google APIsBruno Rocha
 
Profiling PHP with Xdebug / Webgrind
Profiling PHP with Xdebug / WebgrindProfiling PHP with Xdebug / Webgrind
Profiling PHP with Xdebug / WebgrindSam Keen
 
Basic commands for powershell : Configuring Windows PowerShell and working wi...
Basic commands for powershell : Configuring Windows PowerShell and working wi...Basic commands for powershell : Configuring Windows PowerShell and working wi...
Basic commands for powershell : Configuring Windows PowerShell and working wi...Hitesh Mohapatra
 
No Hugging, No Learning
No Hugging, No LearningNo Hugging, No Learning
No Hugging, No LearningOlaf Alders
 
Introduccion app engine con python
Introduccion app engine con pythonIntroduccion app engine con python
Introduccion app engine con pythonsserrano44
 
Игорь Фесенко "Web Apps Performance & JavaScript Compilers"
Игорь Фесенко "Web Apps Performance & JavaScript Compilers"Игорь Фесенко "Web Apps Performance & JavaScript Compilers"
Игорь Фесенко "Web Apps Performance & JavaScript Compilers"Fwdays
 
SFScon17 - Paolo D'Incau: "Build, test and release your software using Free S...
SFScon17 - Paolo D'Incau: "Build, test and release your software using Free S...SFScon17 - Paolo D'Incau: "Build, test and release your software using Free S...
SFScon17 - Paolo D'Incau: "Build, test and release your software using Free S...South Tyrol Free Software Conference
 
#Continuous delivery with #Deployit
#Continuous delivery with #Deployit#Continuous delivery with #Deployit
#Continuous delivery with #DeployitXebia IT Architects
 
CasperJS and PhantomJS for Automated Testing
CasperJS and PhantomJS for Automated TestingCasperJS and PhantomJS for Automated Testing
CasperJS and PhantomJS for Automated TestingX-Team
 
The MetaCPAN VM for Dummies Part One (Installation)
The MetaCPAN VM for Dummies Part One (Installation)The MetaCPAN VM for Dummies Part One (Installation)
The MetaCPAN VM for Dummies Part One (Installation)Olaf Alders
 
V8 javascript engine for フロントエンドデベロッパー
V8 javascript engine for フロントエンドデベロッパーV8 javascript engine for フロントエンドデベロッパー
V8 javascript engine for フロントエンドデベロッパーTaketoshi 青野健利
 

Mais procurados (20)

Django
DjangoDjango
Django
 
Gigigo Rails Workshop
Gigigo Rails WorkshopGigigo Rails Workshop
Gigigo Rails Workshop
 
How Danga::Socket handles asynchronous processing and how to write asynchrono...
How Danga::Socket handles asynchronous processing and how to write asynchrono...How Danga::Socket handles asynchronous processing and how to write asynchrono...
How Danga::Socket handles asynchronous processing and how to write asynchrono...
 
Search 500-video-clips
Search 500-video-clipsSearch 500-video-clips
Search 500-video-clips
 
WP Weekend #2 - Corcel, aneb WordPress přes Laravel
WP Weekend #2 - Corcel, aneb WordPress přes LaravelWP Weekend #2 - Corcel, aneb WordPress přes Laravel
WP Weekend #2 - Corcel, aneb WordPress přes Laravel
 
Perlbal Tutorial
Perlbal TutorialPerlbal Tutorial
Perlbal Tutorial
 
Locarise,reagent and JavaScript Libraries
Locarise,reagent and JavaScript LibrariesLocarise,reagent and JavaScript Libraries
Locarise,reagent and JavaScript Libraries
 
What The Flask? and how to use it with some Google APIs
What The Flask? and how to use it with some Google APIsWhat The Flask? and how to use it with some Google APIs
What The Flask? and how to use it with some Google APIs
 
Profiling PHP with Xdebug / Webgrind
Profiling PHP with Xdebug / WebgrindProfiling PHP with Xdebug / Webgrind
Profiling PHP with Xdebug / Webgrind
 
Learning Svelte
Learning SvelteLearning Svelte
Learning Svelte
 
Basic commands for powershell : Configuring Windows PowerShell and working wi...
Basic commands for powershell : Configuring Windows PowerShell and working wi...Basic commands for powershell : Configuring Windows PowerShell and working wi...
Basic commands for powershell : Configuring Windows PowerShell and working wi...
 
No Hugging, No Learning
No Hugging, No LearningNo Hugging, No Learning
No Hugging, No Learning
 
Introduccion app engine con python
Introduccion app engine con pythonIntroduccion app engine con python
Introduccion app engine con python
 
Игорь Фесенко "Web Apps Performance & JavaScript Compilers"
Игорь Фесенко "Web Apps Performance & JavaScript Compilers"Игорь Фесенко "Web Apps Performance & JavaScript Compilers"
Игорь Фесенко "Web Apps Performance & JavaScript Compilers"
 
SFScon17 - Paolo D'Incau: "Build, test and release your software using Free S...
SFScon17 - Paolo D'Incau: "Build, test and release your software using Free S...SFScon17 - Paolo D'Incau: "Build, test and release your software using Free S...
SFScon17 - Paolo D'Incau: "Build, test and release your software using Free S...
 
Pydata-Python tools for webscraping
Pydata-Python tools for webscrapingPydata-Python tools for webscraping
Pydata-Python tools for webscraping
 
#Continuous delivery with #Deployit
#Continuous delivery with #Deployit#Continuous delivery with #Deployit
#Continuous delivery with #Deployit
 
CasperJS and PhantomJS for Automated Testing
CasperJS and PhantomJS for Automated TestingCasperJS and PhantomJS for Automated Testing
CasperJS and PhantomJS for Automated Testing
 
The MetaCPAN VM for Dummies Part One (Installation)
The MetaCPAN VM for Dummies Part One (Installation)The MetaCPAN VM for Dummies Part One (Installation)
The MetaCPAN VM for Dummies Part One (Installation)
 
V8 javascript engine for フロントエンドデベロッパー
V8 javascript engine for フロントエンドデベロッパーV8 javascript engine for フロントエンドデベロッパー
V8 javascript engine for フロントエンドデベロッパー
 

Destaque

Dawn - Actionscript Library
Dawn - Actionscript LibraryDawn - Actionscript Library
Dawn - Actionscript Librarysammyt
 
Star Chart Power Point
Star Chart Power PointStar Chart Power Point
Star Chart Power PointKaran Bratton
 
【水資源機構】平成17年環境報告書
【水資源機構】平成17年環境報告書【水資源機構】平成17年環境報告書
【水資源機構】平成17年環境報告書env23
 
睿知远见 育木成林
睿知远见 育木成林睿知远见 育木成林
睿知远见 育木成林tjbear
 
Geo Notes .Key
Geo Notes .KeyGeo Notes .Key
Geo Notes .Keyteohongfu
 
Apple Leaf Info 2010 V10.1
Apple Leaf Info 2010 V10.1Apple Leaf Info 2010 V10.1
Apple Leaf Info 2010 V10.1mikebiltonen
 
Thailand Peoples Participation Dialogue Final
Thailand Peoples Participation Dialogue FinalThailand Peoples Participation Dialogue Final
Thailand Peoples Participation Dialogue FinalChange Workshop
 
Lively Applications Examples
Lively Applications ExamplesLively Applications Examples
Lively Applications ExamplesReva Narasimhan
 
Dig China Presentation Amended
Dig China Presentation   AmendedDig China Presentation   Amended
Dig China Presentation AmendedHadi Hassan
 
Amenazas Informática
Amenazas InformáticaAmenazas Informática
Amenazas InformáticaDani Díaz
 
Sinterklaas bezoekt Romae, achter de schermen
Sinterklaas bezoekt Romae, achter de schermenSinterklaas bezoekt Romae, achter de schermen
Sinterklaas bezoekt Romae, achter de schermenRomae internet en content
 

Destaque (20)

Dawn - Actionscript Library
Dawn - Actionscript LibraryDawn - Actionscript Library
Dawn - Actionscript Library
 
Star Chart Power Point
Star Chart Power PointStar Chart Power Point
Star Chart Power Point
 
【水資源機構】平成17年環境報告書
【水資源機構】平成17年環境報告書【水資源機構】平成17年環境報告書
【水資源機構】平成17年環境報告書
 
AVANCE01
AVANCE01AVANCE01
AVANCE01
 
Leila N.
Leila N.Leila N.
Leila N.
 
Daniel Morgenstern Variety
Daniel Morgenstern VarietyDaniel Morgenstern Variety
Daniel Morgenstern Variety
 
Aplicaciones
AplicacionesAplicaciones
Aplicaciones
 
睿知远见 育木成林
睿知远见 育木成林睿知远见 育木成林
睿知远见 育木成林
 
Geo Notes .Key
Geo Notes .KeyGeo Notes .Key
Geo Notes .Key
 
Apple Leaf Info 2010 V10.1
Apple Leaf Info 2010 V10.1Apple Leaf Info 2010 V10.1
Apple Leaf Info 2010 V10.1
 
Alliyah W.
Alliyah W.Alliyah W.
Alliyah W.
 
divertido
divertidodivertido
divertido
 
Thailand Peoples Participation Dialogue Final
Thailand Peoples Participation Dialogue FinalThailand Peoples Participation Dialogue Final
Thailand Peoples Participation Dialogue Final
 
Lively Applications Examples
Lively Applications ExamplesLively Applications Examples
Lively Applications Examples
 
Lauren B.
Lauren B.Lauren B.
Lauren B.
 
Dig China Presentation Amended
Dig China Presentation   AmendedDig China Presentation   Amended
Dig China Presentation Amended
 
Amenazas Informática
Amenazas InformáticaAmenazas Informática
Amenazas Informática
 
Picassa En Xtec Blog
Picassa En Xtec BlogPicassa En Xtec Blog
Picassa En Xtec Blog
 
Meie Unistuste Kool
Meie Unistuste KoolMeie Unistuste Kool
Meie Unistuste Kool
 
Sinterklaas bezoekt Romae, achter de schermen
Sinterklaas bezoekt Romae, achter de schermenSinterklaas bezoekt Romae, achter de schermen
Sinterklaas bezoekt Romae, achter de schermen
 

Semelhante a Mini Curso Django Ii Congresso Academico Ces

Software Project Management
Software Project ManagementSoftware Project Management
Software Project ManagementWidoyo PH
 
Django for Beginners
Django for BeginnersDjango for Beginners
Django for BeginnersJason Davies
 
Easy Web Project Development & Management with Django & Mercurial
Easy Web Project Development & Management with Django & MercurialEasy Web Project Development & Management with Django & Mercurial
Easy Web Project Development & Management with Django & MercurialWidoyo PH
 
Introduction to Django
Introduction to DjangoIntroduction to Django
Introduction to DjangoJoaquim Rocha
 
How to Webpack your Django!
How to Webpack your Django!How to Webpack your Django!
How to Webpack your Django!David Gibbons
 
Introduction to Django
Introduction to DjangoIntroduction to Django
Introduction to DjangoJames Casey
 
GDG Addis - An Introduction to Django and App Engine
GDG Addis - An Introduction to Django and App EngineGDG Addis - An Introduction to Django and App Engine
GDG Addis - An Introduction to Django and App EngineYared Ayalew
 
Django Introduction & Tutorial
Django Introduction & TutorialDjango Introduction & Tutorial
Django Introduction & Tutorial之宇 趙
 
Build and deploy Python Django project
Build and deploy Python Django projectBuild and deploy Python Django project
Build and deploy Python Django projectXiaoqi Zhao
 
An Introduction to Django Web Framework
An Introduction to Django Web FrameworkAn Introduction to Django Web Framework
An Introduction to Django Web FrameworkDavid Gibbons
 
Virtual Environment and Web development using Django
Virtual Environment and Web development using DjangoVirtual Environment and Web development using Django
Virtual Environment and Web development using DjangoSunil kumar Mohanty
 
بررسی چارچوب جنگو
بررسی چارچوب جنگوبررسی چارچوب جنگو
بررسی چارچوب جنگوrailsbootcamp
 
Hands on django part 1
Hands on django part 1Hands on django part 1
Hands on django part 1MicroPyramid .
 

Semelhante a Mini Curso Django Ii Congresso Academico Ces (20)

Software Project Management
Software Project ManagementSoftware Project Management
Software Project Management
 
Django for Beginners
Django for BeginnersDjango for Beginners
Django for Beginners
 
Easy Web Project Development & Management with Django & Mercurial
Easy Web Project Development & Management with Django & MercurialEasy Web Project Development & Management with Django & Mercurial
Easy Web Project Development & Management with Django & Mercurial
 
Django web framework
Django web frameworkDjango web framework
Django web framework
 
Introduction to Django
Introduction to DjangoIntroduction to Django
Introduction to Django
 
How to Webpack your Django!
How to Webpack your Django!How to Webpack your Django!
How to Webpack your Django!
 
Django by rj
Django by rjDjango by rj
Django by rj
 
React django
React djangoReact django
React django
 
DJango
DJangoDJango
DJango
 
Django - basics
Django - basicsDjango - basics
Django - basics
 
Introduction to Django
Introduction to DjangoIntroduction to Django
Introduction to Django
 
Introduction to Django
Introduction to DjangoIntroduction to Django
Introduction to Django
 
GDG Addis - An Introduction to Django and App Engine
GDG Addis - An Introduction to Django and App EngineGDG Addis - An Introduction to Django and App Engine
GDG Addis - An Introduction to Django and App Engine
 
Introduce Django
Introduce DjangoIntroduce Django
Introduce Django
 
Django Introduction & Tutorial
Django Introduction & TutorialDjango Introduction & Tutorial
Django Introduction & Tutorial
 
Build and deploy Python Django project
Build and deploy Python Django projectBuild and deploy Python Django project
Build and deploy Python Django project
 
An Introduction to Django Web Framework
An Introduction to Django Web FrameworkAn Introduction to Django Web Framework
An Introduction to Django Web Framework
 
Virtual Environment and Web development using Django
Virtual Environment and Web development using DjangoVirtual Environment and Web development using Django
Virtual Environment and Web development using Django
 
بررسی چارچوب جنگو
بررسی چارچوب جنگوبررسی چارچوب جنگو
بررسی چارچوب جنگو
 
Hands on django part 1
Hands on django part 1Hands on django part 1
Hands on django part 1
 

Mini Curso Django Ii Congresso Academico Ces

Notas do Editor

  1. * Rápida explanação do que é o Django. * Falar sobre o que o Django não é:   - Muita gente compara com o Plone.
  2. * Falar sobre a origem do django: -jornal de Lawrence - Kansas    - falar sobre a pycon - falar sobre licença BSD - DSF assumiu o desenvolvimento em 2008
  3. - Falar rapidamente sobre cada um desses conceitos
  4. Essas informações podem ser estudadas aqui -> http://docs.djangobrasil.org/misc/design-philosophies.html#misc-design-philosophies   - Falar sobre DRY - Sobre Baixo Acoplamento - Sobre Escrever menos código - Sobre Desenvolvimento Ágil - Sobre Explicito é melhor que implicito
  5. !!!
  6. - explicar MVC - explicar MTV
  7. - explicar MVC - explicar MTV
  8. 1 - Pede para os participantes digitarem 'python' no console...(se linux, td ok) 2 - ...depois para digitar >>import django (aparecerá erro) 3 - Caso tenha internet, baixar o django via "apt-get" ou do site (descompactar e instalar usando: python setup.py install). 4 - repetir passo 2
  9. 1 – Segue os passos para criar um projeto 2 – Pede aos participantes para conferir a pasta criada.
  10. 3 - ...falar brevemente sobre os arquivos criados.     Comentar novamente conven. over config.
  11. 1 – Falar sobre a utilizadade do settings.py 2 – Explicar as principais configurações 3 – Altera dados do banco, time_zone, language_code... 4 – Alterar o TEMPLATE_DIRS para similar ao usado na Fapeal.     Obs.  Lembrar que é um arquivo python e pode-se usar diversas praticipdades. 5 – Colocar as configurações para o admin (TODO – Ver na Fapeal) -------------------------------- 6 – Falar sobre o urls.py 7 – Descomentar as linhas para o admin. (lembrar dos espaçoes em branco ...identação Python) 8 – Sincronizar o banco de dados para gerar o banco     Lembrar de criar um super usuario
  12. 4 – Pedir para rodar o servidor embutido   5 - Conferir se o servidor está rodando acessando pelo browser (http://localhost:8000)    6 - acessar o admin no browser e mostrar as funcionalidades
  13. 1 - Falar brevemente dos possíveis métodos para servidores de produção
  14. 9 – Pede aos participantes para criar a aplicação. 10 – Falar sobre os arquivos criados     models.py     tests.py     views.py 11 – Criar arquivo admin.py e colocar> from django.contrib import admin from models import Artigo admin.site.register(Artigo) 12 – Alterar novamente o settings para adicionar a app criada 13 – Sincronizar o bd...
  15. 10 – Falar brevemente sobre os arquivos criados     models.py     tests.py     views.py
  16. Falar da diferença entre aplicação e projeto
  17. 1 - falar do re-sync e do re-run 2 - cadastrar alguns artigos para visualização
  18. - falar do ACPB
  19. - falar do ACPB