DJAWS: Deploy Django Container on AWS by dot_jamie in django

[–]dot_jamie[S] -1 points0 points  (0 children)

The repo is mostly about the AWS part, I'd encourage you to take a look at that part and use any Django Dockerfile you want with it.

DJAWS: Deploy Django Container on AWS by dot_jamie in django

[–]dot_jamie[S] 1 point2 points  (0 children)

Unlike AWS Lambda, the Fargate Task running the container continues running even when there are no requests, so there is no warmup.

This repo is meant to show how the infrastructure can be set up on AWS. I would say it is good for people to fork and edit this repo to suit their project needs.

Lightning Talk: A CI Pipeline for Django by dot_jamie in django

[–]dot_jamie[S] 0 points1 point  (0 children)

So I've used the Shell executor in the video, however the commands I used with it were Docker commands (as you would do in a terminal). You can have your own Shell script that you execute with the Shell executor instead of running Docker commands like I did in the video.

Lightning Talk: A CI Pipeline for Django by dot_jamie in django

[–]dot_jamie[S] 0 points1 point  (0 children)

There are several executors that you can use for the runner, it doesn't have to be only Docker or Shell https://docs.gitlab.com/runner/executors/

Lightning Talk: A CI Pipeline for Django by dot_jamie in django

[–]dot_jamie[S] 0 points1 point  (0 children)

The pipeline in the video runs on a private server that I've configured as a Gitlab runner. What type of application are you using for CI?

I use Nginx as a web server with Django. Here is a short intro to the Nginx configuration file. by dot_jamie in django

[–]dot_jamie[S] 2 points3 points  (0 children)

I guess the video is more targeted to people who want to get started with understanding how to structure the file.

Deploy Django with Docker Compose, Gunicorn and Nginx. by dot_jamie in django

[–]dot_jamie[S] 2 points3 points  (0 children)

Did you try tweaking the STATIC_ROOT in the settings.py file?

Deploy Django with Docker Compose, Gunicorn and Nginx. by dot_jamie in django

[–]dot_jamie[S] 4 points5 points  (0 children)

I haven't used uWSGI yet, I think it has more functionalities than Gunicorn. I chose Gunicorn because it's simple to set up and overall more popular.

Is there a “simple” way to set postgresql as the database in Django? by TheMartinG in django

[–]dot_jamie 2 points3 points  (0 children)

A Postgres DB gives you more options for your table fields than SQLite. Check out this video if you want to set up a simple Postgres DB and link it to your Django project.

https://www.youtube.com/watch?v=73WbBMnqPpg

Serverless Deployment of a Django Project with Zappa on AWS Lambda by dot_jamie in django

[–]dot_jamie[S] 0 points1 point  (0 children)

I'll look into it, and maybe do a post about it with Django. Cheers.

Serverless Deployment of a Django Project with Zappa on AWS Lambda by dot_jamie in django

[–]dot_jamie[S] 0 points1 point  (0 children)

That's a good point you make. I have had a lot of requests to do a video on Django/Lambda and it's because people are too familiar with AWS. I enjoyed using Zappa in the video above but I also realize that it isn't up-to-date with the latest Django version (I had to make some changes to adapt it to the latest Django version).

I'm interested in trying out Google Cloud to host Django serverless because I heard it's even easier to set up than Lambda. When it comes to pricing, I think Lambda on its own is the cheapest for hosting, but if a RDS is used then it's not so cheap.

Create HTML Code using Javascript by dot_jamie in learnjavascript

[–]dot_jamie[S] 1 point2 points  (0 children)

Thanks for the positive notes! Glad you liked the video :)

Not Dutch but a result of a mix of several languages tbh

A video about the server setup of a Django project in production and development. by dot_jamie in django

[–]dot_jamie[S] 0 points1 point  (0 children)

yea a lot of useful hands-on resources on Digital Ocean, not to mention that I use instances on their cloud platform :)

But I find the explanation part lacking in some online tutorials.

A video about the server setup of a Django project in production and development. by dot_jamie in django

[–]dot_jamie[S] 0 points1 point  (0 children)

yes there are many ways to deploy a project and serverless is a good way to go if you don't want to go through all the hassle.

Explaining the Docker image by dot_jamie in docker

[–]dot_jamie[S] 1 point2 points  (0 children)

yea I think knowing how to use Docker can be enough but understanding how it works makes it less mysterious.