Django

- News Corporation World Online

어디서?

- Hyper-fast development

목적

- Loose coupling MVC Framework

제공 기능

- Template / Django ORM /

   Django web Server

MVC

MVT

단점?

- Django ORM ( vs SQLAlchemy)

App1

App2

App3

Template

views.py

urls.py

models.py

Django!!

View

Controller

Model

- Web Server Gateway Interface

WSGI

- Web Server <--> Web Application

- Django's primary deploy platform

Why neccessary?

- Traditional Web server doesn't understand Python applications.

1990s Grisha Trubetskay

- However...

- Apache module "mod-python"

WSGI as standard interface

- Modules and containers could implement

- In 2003. PEP333. v1.0

- In 2010. PEP3333. v1.0.1

WSGI Purpose

1. Flexibility

2. WSGI Server promotes scaling

Where?

- Application side: Django, Flask...

- Server side:

      Gunicorn, uWSGI, mod_wsgi, gevent

Made with Slides.com