Django bootstrapping done right

Sunday 1:30 pm to 5:00 pm, in Sierra 5
Beginner

About This Tutorial

We have been working with Django for many years and we discovered we were always repeating the same things at the beginning of each project. pycodestyle checks, unit tests, automated deployment, we where doing all of them over and over again and occasionally we were missing important things that would make our lives easier.

That’s why we decided to create and maintain template repository with all the required tools to bootstrap a Django project. It has become very valuable for our company and that’s why we want to share it with the community. The project is now open source and we will review all it in this talk.

Virtual environments.

  • Pyenv and Pipenv
  • Useful dependencies for development (debug toolbar, extensions, django-environ, etc.)

Services your application depends on

  • Docker quickstart
  • Compose example with DB (PostgreSQL), Cache (Redis), NGINX and RQ

Git hooks

  • Tests
  • Flake
  • PEP8
  • Pylint
  • JSCPD

Deployment

  • Deployment stack. Typical pieces of a small application.
  • Deploying to Heroku

CI/CD + Feature branch flow

  • Pipelines
  • Checkstyle tools
  • Slack integration

Monitoring tools

  • Error logging with Sentry
  • Application performance monitoring and profiling with NewRelic

https://bitbucket.org/devartis/django-bootstrap/src

Presenters

    Photo of

    Pablo García

    Father / Husband / Founder at devartis / Beatles and Racing Club fan / Former home-brewing enthusiast