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 full-size slide

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

    View full-size slide

  3. musician
    @tzangms
    CTO of StreetVoice
    小海

    View full-size slide

  4. I won’t Live Demo
    today

    View full-size slide

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

    View full-size slide

  6. What I like in Azure

    View full-size slide

  7. Nice Dashboard

    View full-size slide

  8. Easy deployment
    just a few clicks

    View full-size slide

  9. Then it’s automatic!

    View full-size slide

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

    View full-size slide

  11. Important
    Concept

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  16. Follow the steps in
    README

    View full-size slide

  17. Then your will get this page

    View full-size slide

  18. Configuration in official
    document

    View full-size slide

  19. You don’t have to do these settings

    View full-size slide

  20. You need web.config

    View full-size slide

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

    View full-size slide

  22. Storage
    there is django-storages

    View full-size slide

  23. SQL Server
    there is django-mssql

    View full-size slide