2. Django Deployer
Who Am I
‣ LittleQ
‣ Student @ National Chengchi University
‣ Co-organizer @ GTUG Taipei & Taipei.py
‣ Pythonista, Django & Google App Engine User
‣ http://about.me/littleq
4. Django Deployer
Outline
‣ Briefly introduce PaaS
‣ Django Deployer
‣ How to use Django Deployer
‣ How to contribute Django Deployer if time is enough
5. Django Deployer
What is PaaS
‣ “Platform-as-a-Service”
‣ deploy your code, run your code
‣ Providers:
๏ Google App Engine
๏ Heroku
๏ Amazon
๏ DotCloud
๏ ....and more
6. Django Deployer
Why PaaS
‣ I don’t care
๏ how to manage my servers
๏ how to load balance my servers
๏ how to build infrastructure
‣ I do care
๏ write and ship working code
๏ somebody load balance my servers automatically
๏ somebody provides me their mutual infrastructure
8. Django Deployer
API Binding
web app
Google App Engine APIs
Heroku APIs
DotCloud APIs
Other PaaS APIs
things you have to do
things PaaS has to do
9. Django Deployer
API Binding
web app
Google App Engine APIs
Heroku APIs
DotCloud APIs
Other PaaS APIs
things you have to do
things PaaS has to do
Middleware
10. Django Deployer
API Binding
web app
Google App Engine APIs
Heroku APIs
DotCloud APIs
Other PaaS APIs
things you have to do
things PaaS has to do
Django
11. Django Deployer
Django
‣ A web framework with various APIs:
๏ mail
๏ memcache
๏ storage
๏ ...and more
‣ Be well-known by Python web developers
12. Django Deployer
So, Django Deployer
‣ Make your django app available on every PaaS
‣ Simplify the difficulty of deployment
‣ Speed up your bootstrapping
‣ On Github
https://github.com/natea/django-deployer
13. Django Deployer
History of Django Deployer
‣ Appsembler by Nate Aune
‣ DjangoConf 2012 Development Sprint
‣ PyCon 2013 Development Sprint
15. Django Deployer
I will show you the part about
“Google App Engine”
(Why? Because I made it)
16. Django Deployer
Google App Engine
‣ Google App Engine is not easy
‣ containers V.S. sandboxed containers
‣ cannot install modules with PyPI (pip)
‣ special database settings, storage settings
‣ most django built-in modules cannot work well
17. Django Deployer
WHAT Does Django Deployer Do
‣ Made App Engine Deployment to support
๏ install modules via PyPI (pip) into a virtual environment
๏ Use CloudSQL as the database
๏ Use Google Cloud Storage as the storage
๏ fast, fast, really fast deployment