PyCon Pune 2017

A conference on the Python programming language

PyCon, the gathering for the community using and developing the open-source Python programming language. This is the first year of the PyCon Pune where the community will meet for two days of talks and working on upstream projects in two days of dev sprint. CFP ends on 30th November AoE.

Hosted by

PyCon Pune 2017 more
Saprative Jana

Saprative Jana

@saprativejana

Fab way of deploying Django

Submitted Nov 14, 2016

Fabric(http://www.fabfile.org/) is a command line base application deployment tool. In the complex world of continuous deployments filled with stuffs like ansible, puppet and chef. Fabric or the command fab is the easy way out and that’s what this talk is all about.
This talk is basically for developers who have to do deploy their code themselves. Now the problem with going with stuff like ansible or puppets or such kind of deployment tools is that they bring a lot of baggage and have a very stiff learning carve and developers end up spend a lot of time doing Devop’s job rather than developing application.
In this talk I will walk you through the problems I have faced while doing Devop’s job being a developer.
Though mostly I will be talking about Django deployment and problems and used cases specific to Django and my production tested fab srcipt will also be useful only for django deployment but if you into some other stack you can still use fab and the info I provided. Its just that you need to develop your own script for that in that case.

Outline

The talk is divide into 4 parts

  1. Best practices of Django deployment: I this portion I will talk about the basics of Django deployment strategies.
  2. Learning basics of Fabric: In this portion I will go through the basics of writing a fab script and get accustomed with basic fabric commands
  3. Creating a fab script for one command deployment: In this section I will be guilding you through my personal fab script that I use for pushing my code to production. The script will help you deploy your code by just running a simple command and you don’t need to worry about stuff like migration, nginx config changes, dependency management and seamlessly deploy your code in one command.
  4. Demo: I will be deploy a basic Django site and show how the script works.

Requirements

The talk is best suited for Django develpers facing problem with deployment. So knowing Django will help but is not necessary to understand this talk. But one sould definitly know scripting in python and basic of SSH command in order to understand this talk.

Speaker bio

I was the CEO of Amahobby a knowledge crowdsourcing platform. Now I am working on a new project known as Spotings.
In Amahobby I was responsible for managing the whole product development team.

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

PyCon Pune 2017 more