Posts

, , ,

Django Docker Deployment with HTTPS using Letsencrypt

In this guide, I'll show you how to enable HTTPS on a Django app that's deployed using Docker. You can find the full source code for this tutorial project here: LondonAppDeveloper/django-docker-deployment-with-https-using-letsencrypt https://youtu.be/3_ZJWlf25bY Watch…
Docker compose and Docker logos on a thumbnail

Docker vs Docker Compose, what’s the difference?

This is a question asked by a student who is taking our course: Build a Backend REST API with Python & Django - Advanced. Question A student asked: What is the difference between Docker and Docker Compose? Why do we need both a Dockerfile…
Django and Docker compose logos on a blueish green background
, , ,

Deploying Django with Docker Compose

There are a number of ways you can deploy a Django app. One of the simplest is by running the app using Docker Compose directly on a Linux virtual machine. The benefits to this approach are: Fastest and easier to get up and running.Define…
Docker and Travis CI logos with a caution sign
,

Fixing toomanyrequests error when using Docker with Travis-CI

Students of our course Build a Backend REST API with Python & Django - Advanced have recently been getting the following issue when pulling Docker images in Travis-CI jobs: ERROR: toomanyrequests: You have reached your pull rate limit.…
Docker and VSCode logos on an orange background
, , ,

Use Docker to create a new Django project in one line

If you already have Docker on your machine, you can create a new Django project (using any version) using a single command. Create in an app/ directory: docker run -v ${PWD}/app:/app -w /app python:3.9-alpine sh -c "pip install Django==3.2…
, , ,

Debugging a Dockerized Django app with VSCode

I am a huge advocate for integrating Docker into your development process. There are many benefits to this, such as: Consistent developer environmentsParity of development and production environmentsDependency isolation from your…
,

Setting up PostgreSQL database with a Django Docker application

In this video, I’ll show you how to set up a PostgreSQL database with a Django Docker application. This post follows from a previous post which shows you how to Dockerize a Django REST Framework project. Both videos were inspired by my course…
,

Dockerizing a Django REST Framework Project

In this video I'll show you how to create a Docker container for a Django REST Framework project. This video was inspired by my Build a REST API course on Udemy. In the course, I build a REST API using Vagrant, but Vagrant is not the only…