Django - Software Architecture and Design

29
DJANGO Marcello Romanelli Software Architecture and Design giovedì, 23 maggio 13

Transcript of Django - Software Architecture and Design

Page 1: Django - Software Architecture and Design

DJANGOMarcello Romanelli

Software Architecture and Design

giovedì, 23 maggio 13

Page 2: Django - Software Architecture and Design

DJANGOWHAT

is

giovedì, 23 maggio 13

Page 3: Django - Software Architecture and Design

The web framework for perfectionist with deadlines.

giovedì, 23 maggio 13

Page 4: Django - Software Architecture and Design

DJANGOWHY

use

giovedì, 23 maggio 13

Page 5: Django - Software Architecture and Design

PYTHONUSES

giovedì, 23 maggio 13

Page 6: Django - Software Architecture and Design

Full StackFramework

giovedì, 23 maggio 13

Page 7: Django - Software Architecture and Design

PYTHONONLY

giovedì, 23 maggio 13

Page 8: Django - Software Architecture and Design

ACTIVECOMMUNITY

giovedì, 23 maggio 13

Page 9: Django - Software Architecture and Design

ADMININTERFACE

giovedì, 23 maggio 13

Page 10: Django - Software Architecture and Design

From this...

giovedì, 23 maggio 13

Page 11: Django - Software Architecture and Design

...to this!

giovedì, 23 maggio 13

Page 12: Django - Software Architecture and Design

www.djangosites.orggiovedì, 23 maggio 13

Page 13: Django - Software Architecture and Design

LET’S GODEEPER

giovedì, 23 maggio 13

Page 14: Django - Software Architecture and Design

ARCHITECTURAL

STYLEgiovedì, 23 maggio 13

Page 15: Django - Software Architecture and Design

giovedì, 23 maggio 13

Page 16: Django - Software Architecture and Design

MODELTEMPLATEVIEW determine what data is to be displayed

process requests with a web templating system

definition of some stored data, accessible via an ORM API

giovedì, 23 maggio 13

Page 17: Django - Software Architecture and Design

COMPONENTSReusable Unit of Composition

giovedì, 23 maggio 13

Page 18: Django - Software Architecture and Design

CLASS

class  CommonInfo(aSystem.superclass):        field1  =  ...        field2  =  ...

       def  method1(arg1,  arg2):                ...                doSomething();                ...                return  a,  b,  c

       def  method1(arg1):                ...                doSomethingElse();                ...                return  a

giovedì, 23 maggio 13

Page 19: Django - Software Architecture and Design

myAPPFILE:  f1.pyclass  class1(aSystem.superclass):        field1  =  ...        field2  =  ...

FILE:  f2.pyclass  class2(aSystem.superclass):        field1  =  ...        field2  =  ...

CLASS CLASS

Standard  Files

giovedì, 23 maggio 13

Page 20: Django - Software Architecture and Design

myAPPFILE:  PKG-­‐INFOMetadata-­‐Version:  1.0Name:  django-­‐gmapiVersion:  1.0.1Summary:  A  Google  Maps  API  implementation  for  DjangoHome-­‐page:  http://code.google.com/p/django-­‐gmapi/

DEP PKGINFO

Extra  Files

giovedì, 23 maggio 13

Page 21: Django - Software Architecture and Design

CONNECTORSmodels interaction between

COMPONENTSgiovedì, 23 maggio 13

Page 22: Django - Software Architecture and Design

METHODCALL

giovedì, 23 maggio 13

Page 23: Django - Software Architecture and Design

SHAREDDATABASE

giovedì, 23 maggio 13

Page 24: Django - Software Architecture and Design

MESSAGE

giovedì, 23 maggio 13

Page 25: Django - Software Architecture and Design

CONCRETEEXAMPLE

giovedì, 23 maggio 13

Page 26: Django - Software Architecture and Design

IDEAgiovedì, 23 maggio 13

Page 27: Django - Software Architecture and Design

MTVSignalsShared DBComponent Reuse

giovedì, 23 maggio 13

Page 28: Django - Software Architecture and Design

CarRealEstate

views

index

all

Signal

ipLogger

priceLogger

Common

django_google_maps

tastypie

giovedì, 23 maggio 13

Page 29: Django - Software Architecture and Design

giovedì, 23 maggio 13