i get this error with your repo cloned when running command >>> docker-compose run --rm app sh -c "django-admin startproject app ." with open(new_path, "w", encoding="utf-8") as new_file: PermissionError: [Errno 13] Permission denied: '/app/manage.py'
i got this error when i debugging. a debug stop at line "execute_from_command_line(sys.argv)" in the manage.py. the error message is "Exception has occurred: OperationalError could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? psycopg2.OperationalError: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? The above exception was the direct cause of the following exception: File "d:\django projects ecipe-app-api\app\manage.py", line 18, in main execute_from_command_line(sys.argv) File "d:\django projects ecipe-app-api\app\manage.py", line 22, in <module> main() django.db.utils.OperationalError: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?"
This seems to fail when I'm already using postgres for my project, is there any way to fix this error: django.db.utils.OperationalError: connection to server on socket "/run/postgresql/.s.PGSQL.5432" failed: No such file or directory Is the server running locally and accepting connections on that socket? When I check docker ps my database is in fact running on 5432 and healthy. Thanks!
Actually this video shows how to implement websocket in the web page. It will not work on Android emulator or Android app either. Web sockets just do not work on mobile app. Even if the app is on foreground.
Thank you so much. That's very kind. That's our dream to create more content more often, but life gets in the way when you work full-time. Appreciate your support.
I bought KodeKloud for $162, but after receiving a 40% discount. While considering purchasing your product, I noticed two limitations. Firstly, I couldn't preview the contents of all the courses, unlike KodeKloud, where course details are visible upfront. Secondly, I require a one-week free trial period, which is not currently offered. However, I believe a discount is already available, which is appreciated. I am a DevOps eng and if the project is good for DevOps I will purchase it
Yet another awesome video. I managed to apply ssl certificate to my dockerized project successfully. This is only the second video I watch on this channel and I'm really hooked, I learned so much already. I love the way the videos are very well presented and explained plus the very practical content, really awesome work. You might wanna create a course on Udemy for django development with docker man there's nothing there, we'll definitely love it. I've just found out you already have courses there I'm definitely gonna get the one on building REST API. Thanks a lot and keep up the great work.
Thanks for the nice message. Glad you like my teaching style. We actually have a two courses on Udemy teaching Django and Docker. One is our advanced API course which is a bestseller: www.udemy.com/course/django-python-advanced/ The other is one we updated yesterday, it's a commercial grade course on deploying a Django app to AWS: www.udemy.com/course/devops-deployment-automation-terraform-aws-docker/ Check them out!
At first - thx for this guide! But at second - why I always get an error from nginx after running "up" command: --- "invalid number of arguments in "proxy_set_header" directive in /etc/nginx/conf.d/default.conf:42" --- after I added block like this to default-ssl.conf.tpl file: --- location / { proxy_pass application:8000; proxy_set_header Host \$host; proxy_set_header X-Real-IP \$remote_addr; proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto \$scheme; add_header X-Frame-Options "SAMEORIGIN" always; add_header X-XSS-Protection "1; mode=block" always; add_header X-Content-Type-Options "nosniff" always; add_header Referrer-Policy "no-referrer-when-downgrade" always; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; } --- Nginx constantly cusses at one or another line from this block :( Can someone explain me please?
Okay, I figured it out on my own. It turns out that because run.sh is in bash, it handles variables in its own way, so instead of this: proxy_set_header X-Real-IP \$remote_addr; I had this: proxy_set_header X-Real-IP \ ; By adding a script to run.sh: export remote_addr=\$remote_addr export proxy_add_x_forwarded_for=\$proxy_add_x_forwarded_for export scheme=\$scheme everything worked. Thanks again for the tutorial!
si was was running a django app using rds, ec2, load balancers etc.. but it was just too expensive... How is deploying to lightsail cost? wat monthly cost are we looking at?
You can get all the pricing here: aws.amazon.com/lightsail/pricing/ Too be honest, the price might be similar to using EC2 / Load Balancer / RDS directly. The benefit of lightsail is that the pricing is more predictable. If you want something really cheap then best bet is to run everything on a single VPS (database, app, etc...). For this, my personal preference is katapult.io. You could also check out fly.io/docs/about/pricing/
Actually the error is related to minikube not able to create tunnel when running minikube service <servicename>. To resolve the issue I ran kubectl port-forward service/django 7080:8000 and access the project in localhost:7080, this is just a temporary work around hope someone can point me the right direction on how to solve this issue
psycopg-binary is not recommended for production: www.psycopg.org/docs/install.html#psycopg-vs-psycopg-binary It's fine for learning and local development though.
Gosh we're due to have a baby in a couple of weeks and we just made an major overhaul to our DevOps course. I'd like to say soon but that would be lying. We're thinking of doing a JavaScript course next, kind of like a full-stack thing. Any suggestions?
Please do a complete the DevSecOps project for us. I've already successfully implemented two projects with your assistance, and I've been really satisfied with the content provided. I'm looking forward to seeing more resources related to DevSecOps, as well as additional topics such as securing and using two cloud provider in combination for one project and so on
My friend scolded me for not using his referral link and building up my hands-on experience 🙂. So, here I am, trying yours, even though I'm clueless about Django and Kubernetes😇🙃. My goal is to delve into cloud security, so I'm hoping you have resources for practicing such skills. If not, I'm looking forward to when you release one and tag me. Cheers for all your efforts!
Cloud security is an intriguing topic and we've thought about doing something on that. Have you seen our DevOps Deployment Automation course? We deploy a Django app to AWS, security best practices are all baked into the course. Check it out here if you want: londonapp.dev/devops-2024
Thanks to everyone for the support! I am working on putting out more content in the coming months if you have any suggestions for shorter lengths videos I would consider putting some things together!