Django Deployer
Fastest way to deploy your Django app onto PaaS
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
Django Deployer
This Presentation
‣ It’s already on slideshare.net
‣ scan QRCode to view it on your smartphone
Django Deployer
Outline
‣ Briefly introduce PaaS
‣ Django Deployer
‣ How to use Django Deployer
‣ How to contribute Django Deployer if time is enough
Django Deployer
What is PaaS
‣ “Platform-as-a-Service”
‣ deploy your code, run your code
‣ Providers:
๏ Google App Engine
๏ Heroku
๏ Amazon
๏ DotCloud
๏ ....and more
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
Django Deployer
The Problem of PaaS
‣ Migration
‣ API Binding
‣ “Data” in Database
‣ Price
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 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
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
Django Deployer
Django
‣ A web framework with various APIs:
๏ mail
๏ memcache
๏ storage
๏ ...and more
‣ Be well-known by Python web developers
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
Django Deployer
History of Django Deployer
‣ Appsembler by Nate Aune
‣ DjangoConf 2012 Development Sprint
‣ PyCon 2013 Development Sprint
Django Deployer
Google Summer of Code
‣ Thank Django Foundation
‣ Totally 3 participants under Django Foundation
Django Deployer
I will show you the part about
“Google App Engine”
(Why? Because I made it)
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
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
Django Deployer
LIVE DEMO TIME
If it became a dead demo, check out http://ascii.io/a/3337

Django Deployer

  • 1.
    Django Deployer Fastest wayto deploy your Django app onto PaaS
  • 2.
    Django Deployer Who AmI ‣ LittleQ ‣ Student @ National Chengchi University ‣ Co-organizer @ GTUG Taipei & Taipei.py ‣ Pythonista, Django & Google App Engine User ‣ http://about.me/littleq
  • 3.
    Django Deployer This Presentation ‣It’s already on slideshare.net ‣ scan QRCode to view it on your smartphone
  • 4.
    Django Deployer Outline ‣ Brieflyintroduce PaaS ‣ Django Deployer ‣ How to use Django Deployer ‣ How to contribute Django Deployer if time is enough
  • 5.
    Django Deployer What isPaaS ‣ “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
  • 7.
    Django Deployer The Problemof PaaS ‣ Migration ‣ API Binding ‣ “Data” in Database ‣ Price
  • 8.
    Django Deployer API Binding webapp 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 webapp 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 webapp 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 ‣ Aweb framework with various APIs: ๏ mail ๏ memcache ๏ storage ๏ ...and more ‣ Be well-known by Python web developers
  • 12.
    Django Deployer So, DjangoDeployer ‣ 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 ofDjango Deployer ‣ Appsembler by Nate Aune ‣ DjangoConf 2012 Development Sprint ‣ PyCon 2013 Development Sprint
  • 14.
    Django Deployer Google Summerof Code ‣ Thank Django Foundation ‣ Totally 3 participants under Django Foundation
  • 15.
    Django Deployer I willshow you the part about “Google App Engine” (Why? Because I made it)
  • 16.
    Django Deployer Google AppEngine ‣ 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 DoesDjango 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
  • 18.
    Django Deployer LIVE DEMOTIME If it became a dead demo, check out http://ascii.io/a/3337