Week #56
A simple yet rewarding week. Continuing the learning path of SQL, and taking it to a next level with consistent posting of log like posts, reading a ton of hackernews articles, researching about AI generated images metadata, and a lot of python code.
Techstructive Weekly #48
Week #48
An fruitful week, not much on tech created, but a lot of learning and revising about the first principal thinking.
Techstructive Weekly #46
Week #46
Life takes turns pretty quickly. I was here last week, complaining about life and here I am today, feeling grateful for whatever happened to me.
Techstructive Weekly #23
We are in 2025! Happy New Year
It feels good to carry this newsletter through the year from July 2024 to January 2025 and counting ….
Week #23
It was a huge roaring start to the year, I created a video on the 1st, and that too a big video, I put in everything I could know about the thing I wanted to talk about in little as I could, and it's gaining views and is likely to spike as the Golang 1.24 release date approaches. 200 IQ move there.
Techstructive Weekly #10
Week #10
Wrapping up the third quarter with a burst of energy! This week felt more mentally demanding, but as the week closed, I realized that even small progress is still progress. Sometimes, numbers don’t tell the whole story—they can shift perceptions or even mislead. I believe in valuing the journey more than the destination, and this week’s coding, learning, and creating was worth more than any metric can show.
Techstructive Weekly #9
Week #9
This week was a bit of refreshing as I was able to write some code, bunch of experimentation and feeling a bit back after some slump in the past week. Need to get one video out this weekend to get into the habit. This October I will be trying to build my own writing routine, it won’t be for technical articles, but I won’t be surprised if I find it helpful to write more technical articles.
Django App from Scratch Using Docker with Debian Base Image
Creating a django basic application with configuration for static files, templates and user authentication using docker and debian base image.
Dockerize a Django project
Dockerize a Django project
We can run our Django projects in a Docker Container by creating a Docker image for our project. It is really easy and intuitive to create a Dockerfile for any given application as it really is a matter of writing commands in a file and basically running it is a isolated environment. To create a Docker image, we first need a Dockerfile. A Dockerfile is simply a Blueprint to create a image in Docker. In this file we specify the instructions/commands/environment variables to create a image for our app to run.
Docker Port Forwarding
Docker Port Forwarding
Port forwarding is a process to redirect the communication of one address to other.
It is also known as Port Binding.
We can use -p command to use port forwarding in our local Docker environment.
docker run -p 8000:8000 django-app
The first port number is the local machine port and followed by a : is the container port number.
SO, the request from the container port are forwarded to the local/outside world in the docker environment.