Тёмный

Containerize Django Backend Server with Docker - Full stack Development Tutorial 

Bek Brace
Подписаться 32 тыс.
Просмотров 8 тыс.
50% 1

In this video, I will show you how to containerize a Django project using Docker, a popular containerization tool.
By containerizing your Django project, you can create a self-contained environment that includes all the dependencies your application needs to run, making it easy to deploy your app on any server. We'll walk you through the process step-by-step, from creating a Dockerfile to building and running your Docker container. We'll also cover some best practices for containerizing Django applications, such as how to manage static files and environment variables. By the end of this video, you'll have a solid understanding of how to use Docker to containerize your Django projects, which can save you time and effort in the long run.
⏮️Follow me on⏭️
👓 Instagram : / bek_brace
👓 Twitter : / bekbrace
👓 Dev : dev.to/bekbrace
👓 GitHub : github.com
Buy me a coffee 👉 ko-fi.com/bekb...
Join this channel to get access to perks:
/ @bekbrace

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 22   
@thekaliexpert
@thekaliexpert Год назад
Clear for me, thanks man for your quality videos
@BekBrace
@BekBrace Год назад
Thanks
@peaceangell
@peaceangell Год назад
❤ nice tutorials man, great tips. Thank you🎉
@BekBrace
@BekBrace Год назад
Thank you very much :)
@wesleysandifer6157
@wesleysandifer6157 4 месяца назад
Thank you. You cleared up most of my confusion. I think it would help me if you add a tiny bit more detail to the details cause I'm very new to this aspect of database. I'm learning to build this project I have in mind from a django book and got roadblocked when it just breezes right over to migrating everything to a different database like we know how to do that. So I took time off to learn postgresql and how to use that but still couldn't connect the dots. I'm still having trouble but at least now I got a much better perspective on that. Perhaps you should make a video on a ongoing project on how to migrate everything to the new database. Right now , that's where i'm at. I got about 10 html pages and things in the local database and static pages with css and javascripts and so on. I try migrating after setting up an image but it cant find the project where the settings is. I'll be shocked if this guy answers me but if anyone reading this and know what video is good for that, please let me know
@BekBrace
@BekBrace 3 месяца назад
First , thanks for your comment. Second, I like your persistence in learning and developing, this is a champion's character. About database migration, I was thinking of making a video about the concept of migration in general, but this way I can show it in practice and eventually it's going to answer your question. Cheers
@wesleysandifer6157
@wesleysandifer6157 3 месяца назад
@@BekBrace The book is using postgresql and docker. I'm using windows10. People who do videos using liux don't translate very well for windows user. I'm guessing the new docker doesn't have a cli to install. I been using the VSCode terminal which seems to work. Thanks for responding. Some insight of what us armatures are going through helps with the details..
@BekBrace
@BekBrace 3 месяца назад
@@wesleysandifer6157 Ask me a concrete question and I'll do my best answering. Remember: you're an amateur today but you might be a pro tomorrow.
@Çalhanoğluuuu
@Çalhanoğluuuu Год назад
Thank you for this as i was thinking about learning devops.
@BekBrace
@BekBrace Год назад
Go for it
@CodeWithOgochukwu
@CodeWithOgochukwu 2 месяца назад
Thnank you
@BekBrace
@BekBrace 2 месяца назад
@@CodeWithOgochukwu You're welcome 🤗
@shaysframe1472
@shaysframe1472 Месяц назад
How do you handle the warning for the import statements?
@smiddy19801
@smiddy19801 Год назад
Can you make a video on how to make this one prod? with Apache WSGI and SSL ?
@BekBrace
@BekBrace Год назад
Yes maybe i will
@pranavingale6850
@pranavingale6850 9 месяцев назад
I know silly question! But i want to know, steps to upload your Dockerized diango project on github! Is it same as uploading a non-dockerized simple django project or are there some extra steps?
@BekBrace
@BekBrace 9 месяцев назад
It's not a silly question at all! The process of uploading a Dockerized Django project to GitHub is quite similar to uploading a non-Dockerized Django project, but there are a few additional steps related to Docker that you need to consider. Here are the steps: 1- Initialize a Git repository: 2- Create a .gitignore file to specify files and directories that should be ignored by Git. Include entries for common files and directories generated by Django and Python, as well as Docker-related files. Here is a basic example: *.pyc __pycache__ db.sqlite3 docker-compose.yml .env .vscode/ .idea/ 3- Commit your code: 4- Create a GitHub repository: 5- git remote add origin 6- git push -u origin master 7- Create a Dockerfile and a docker-compose.yml file to define your Dockerized environment. Make sure to include instructions for setting up your Django project within the Docker container. 8- git add Dockerfile docker-compose.yml git commit -m "Add Docker configuration" git push origin master 9- Create a .dockerignore file to exclude unnecessary files from being copied into the Docker image. This is similar to .gitignore but specifically for Docker. For example: __pycache__ *.pyc *.pyo *.pyd *.db .vscode/ .git/ Hope this will be able to help you out :)
@pranavingale6850
@pranavingale6850 9 месяцев назад
@@BekBrace dude you copy pasted chat gpt response 😂
@inteliconn995
@inteliconn995 Год назад
Thanks!
@BekBrace
@BekBrace Год назад
Sure
@pavanshashidhar9559
@pavanshashidhar9559 10 месяцев назад
I get the following error when I run 'docker-compose up' django.db.utils.OperationalError: could not translate host name "db" to address: Name or service not known
Далее
Docker - Containerize a Django App
24:09
Просмотров 3,3 тыс.
The intro to Docker I wish I had when I started
18:27
Просмотров 135 тыс.
Mcdonalds cups and ball trick 🤯🥤 #shorts
00:25
Просмотров 801 тыс.
Django & Postgres with Docker Best Practices
11:11
Просмотров 17 тыс.
I Remade YouTube From Scratch Using Just Bash
17:51
Просмотров 25 тыс.
Best frontend and backend projects for resume
13:11
Просмотров 221 тыс.
Deploy with Docker - Step-by-step Tutorial
20:20
Просмотров 20 тыс.
Prepare a Django app for Deployment using Docker
39:10
Using docker in unusual ways
12:58
Просмотров 453 тыс.
Building a Django Docker Container
34:11
Просмотров 26 тыс.
Dockerizing Django with Postgres, Redis and Celery
20:59
Docker Tutorial for Beginners
50:38
Просмотров 43 тыс.