Django
- News Corporation World Online
어디서?
- Hyper-fast development
목적
- Loose coupling MVC Framework
제공 기능
- Template / Django ORM /
Django web Server
MVC
MVT
- Template
https://docs.djangoproject.com/en/1.9/ref/templates/language/
단점?
- Django admin
http://www.djangobook.com/en/2.0/chapter06.html
- Django ORM ( vs SQLAlchemy)
- Class based view
https://docs.djangoproject.com/en/1.9/topics/class-based-views/#supporting-other-http-methods
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