Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Deploy Django on Windows Azure web sites in 5 minutes

Deploy Django on Windows Azure web sites in 5 minutes

Ming Shien Tzang

May 25, 2013
Tweet

More Decks by Ming Shien Tzang

Other Decks in Technology

Transcript

  1. Deploy Django on
    Windows Azure web sites
    in 5 minutes
    by @tzangms

    View Slide

  2. Start from scratch
    you can deploy django from library in 1 minutes

    View Slide

  3. musician
    @tzangms
    CTO of StreetVoice
    小海

    View Slide

  4. I won’t Live Demo
    today

    View Slide

  5. What PaaS I’ve used
    •Heroku
    •AppEngine
    •dotcloud
    •AWS
    •ep.io (dead)
    •djangy (dead)

    View Slide

  6. What I like in Azure

    View Slide

  7. Nice Dashboard

    View Slide

  8. View Slide

  9. Easy deployment
    just a few clicks

    View Slide

  10. View Slide

  11. Then it’s automatic!

    View Slide

  12. View Slide

  13. Visual Studio is too
    complicated for me
    So I stick with the command line.

    View Slide

  14. Important
    Concept

    View Slide

  15. You have to commit
    python packages in
    `site-packages`

    View Slide

  16. $ pip install \
    -t site-packages
    -t = target

    View Slide

  17. Dir Structure
    and that’s the site-packages I just mentioned

    View Slide

  18. Quick Start

    View Slide

  19. tzangms/django-azure-template
    github.com
    I already made a
    django template

    View Slide

  20. Follow the steps in
    README

    View Slide

  21. Then your will get this page

    View Slide

  22. Configuration in official
    document

    View Slide

  23. You don’t have to do these settings

    View Slide

  24. You need web.config

    View Slide

  25. There is more
    but I did not test it yet.

    View Slide

  26. Storage
    there is django-storages

    View Slide

  27. SQL Server
    there is django-mssql

    View Slide

  28. Thanks!

    View Slide