I do like Mark's tutorials and his teaching style .Honestly he is among few who keep tutorials simple and more straight to the point .No wasting time no learning futile things. Just what tutorials are meant for .Furthermore he takes time and pain to clearly explain why he does this and why he does not that .A great style of teaching!!! :-)
Very informative and helpful. Best of all, it actually works. A lot of recent tutorials I've tried have come from like 2018 and something is always broken about them by this point. I guess it helps that your tutorial came out last year and apparently no major changes have come along to break that.... yet. But very good video, easy to follow, and really great in spelling out the individual elements that go into this.
Thanks for the video! You are the best! As a topic for the following videos, I vote for integrating the database into a Django project deployed with GAE.
I love the way how you walked through each and every line word by word of yaml and commands and yet, squeezed a full project from scratch to deployment within 1 hr. that's incredibly insane.
Thanks for the helpful tutorial. Facing problem while running the command: docker-compose -f docker-compose-deploy.yml run --rm gcloud sh -c "gcloud auth login". exec /bin/sh: exec format error ERROR: 1 any idea how to solve it. I tried to solve it by changing the gcloud image to latest, but still facing the same issue. Also added #!/bin/sh in every .yml file and ENTRYPOINT ["/bin/sh"] in Dockerfile but no use.
Thanks for a great tutorial, I have some questions can you explain about how to do this using posgresql and should one use nginx in this setup and lastly how to make the url match the domain of the site thank in advance
This was really good. I have a question, in the Dockerfile you wrote COPY ./app /app and then in the docker-compose you mapped the same directory as a volume. I think the copy was unnecessary. Could you explain a little bit on that?
Great video, Mark, thank you very much for sharing your experience. I have one question: is there an advantage of developing in a docker file on your local machine vs. developing in the App Engine, specifically if you think of scaling? And, it would be great if you could cover deploying a Django application with a database (e.g. PostgreSQL) in one of your next videos.
Thank you for your teaching. I'm following your tutorial. and I stuck in 51:44 for accounting google. I copy the link and faced 'The version of the app you're using doesn't include the latest security features to keep you protected. Please make sure to download from a trusted source and update to the latest, most secure version. 400: invalid_request'. ( When I type 'gcloud auth login', it is no problem) Please help me
Amazing video mate, I'm starting with GAE now and I'm struggling, this video helped a lot... I suggest how to integrate the database with the django project and deploy it to the cloud. 👏🏻👏🏻 Thanks for the video
Hey Mark great tutorials, having some issues getting docker compose to work. Followed the instructions to the tee, but getting permission denied: '/app/manage.py'. Any idea if any changes need to be made to run in debian?
1- link to "Finished project on Github" does not Work. it says "page not found" 2- If my project has a local sqlite3 database, Does the method you mentioned still work without any additional steps ? Thanks
Apologies, link to final project should work now, thank you for letting me know! For the database, this guide doesn't cover database integration, but I'm thinking of covering it in my next tutorial... Unfortunately SQLite is not an option on GAE because the filesystem is not persistent. You can use Cloud SQL which is a relatively expensive option (starts at about $10 per month I think), or you can use Datastore which is a NoSQL database offered by Google and has a free tier that would cover most low-traffic apps. The Cloud SQL option means you can use Django Admin and things like that, but requires a few extra deployment steps. If you have a preference on either of these, let me know and I'll try plan some content!
@@LondonAppDeveloper Thank you for your kind response and also Thank you for providing such good training contents. I think "Google Cloud SQL option" is perfect for testing purpose and also for small project. I will be happy if you plan to create content related to this.
I do would like a Docker's dependencies tutorial on choosing deps for things like PostgreSQL, pillow, etc.., and docker scan Out-of-bounds Read vulnerabilities for securing the images.
@@LondonAppDeveloper which command is that? docker-compose -f docker-compose-deploy.yml ... "... auth login"? For me it logs "cannot find the file specified". Worked charming first time following along but idk how to re-init docker or basically get the command to work returning to it after some days ^^,
Hi, Mark! Greetings from California : ) this tutorial was insanely useful and I was wondering if, in the future, you could upload a video taking it a step further, using cloud storage to upload, process and store files? Cheers, man!
Maybe there are new ways to do the docker-compose run? When I try docker-compose run -rm app sh -c "django-admin startproject app ." I get a message "Run a one-off command on a service..." So I did it the old fashioned way: python3.9 -m venv venv source venv/bin/activate pip install --upgrade pip pip install -r ./requirements.txt django-admin startproject app .
Anybody facing the oauth invalid request issue in the authentication using google oauth screen, change the sdk to the latest in docker-compose-deploy.yml file to 453.0.0 OAuth should work after that
This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.
@@LondonAppDeveloper Lol ! :-) Well it proves that expression that goes like: "Most problems with computer programs and web apps are located between the keyboard and the chair' :-D But.. in all seriousness, kudos to you, because your git repo enabled me to correct my own mistake :-)
I do like Mark's tutorials and his teaching style .Honestly he is among few who keep tutorials simple and more straight to the point .No wasting time no learning futile things. Just what tutorials are meant for .Furthermore he takes time and pain to clearly explain why he does this and why he does not that .A great style of teaching!!! :-)
Thanks so much, that's really kind of you to say.
Very informative and helpful. Best of all, it actually works. A lot of recent tutorials I've tried have come from like 2018 and something is always broken about them by this point. I guess it helps that your tutorial came out last year and apparently no major changes have come along to break that.... yet.
But very good video, easy to follow, and really great in spelling out the individual elements that go into this.
Thanks for the video! You are the best! As a topic for the following videos, I vote for integrating the database into a Django project deployed with GAE.
I love the way how you walked through each and every line word by word of yaml and commands and yet, squeezed a full project from scratch to deployment within 1 hr. that's incredibly insane.
Many thanks
As for databases with google cloud it would be great to see such a tutorial
Thanks for the helpful tutorial. Facing problem while running the
command: docker-compose -f docker-compose-deploy.yml run --rm gcloud sh -c "gcloud auth login".
exec /bin/sh: exec format error
ERROR: 1
any idea how to solve it. I tried to solve it by changing the gcloud image to latest, but still facing the same issue. Also added #!/bin/sh in every .yml file and ENTRYPOINT ["/bin/sh"] in Dockerfile but no use.
Thanks for a great tutorial, I have some questions
can you explain about how to do this using posgresql and should one use nginx in this setup and lastly how to make the url match the domain of the site thank in advance
This was really good.
I have a question, in the Dockerfile you wrote COPY ./app /app and then in the docker-compose you mapped the same directory as a volume. I think the copy was unnecessary. Could you explain a little bit on that?
Great video, Mark, thank you very much for sharing your experience. I have one question: is there an advantage of developing in a docker file on your local machine vs. developing in the App Engine, specifically if you think of scaling? And, it would be great if you could cover deploying a Django application with a database (e.g. PostgreSQL) in one of your next videos.
I've been waiting for this for long!
Great, let me know what you think.
@@LondonAppDeveloper Will do, mate! Have you already got familiar with FastAPI by the way? Looks very promising, consider making a course on that!
@@saitaro that would be awesome!
Thank you for your teaching. I'm following your tutorial. and I stuck in 51:44 for accounting google. I copy the link and faced 'The version of the app you're using doesn't include the latest security features to keep you protected. Please make sure to download from a trusted source and update to the latest, most secure version. 400: invalid_request'. ( When I type 'gcloud auth login', it is no problem) Please help me
facing the same issue
Amazing video mate, I'm starting with GAE now and I'm struggling, this video helped a lot... I suggest how to integrate the database with the django project and deploy it to the cloud. 👏🏻👏🏻
Thanks for the video
Great Video, however if I have more services(like celery) in my docker-compose,yml would that work in App engine?
Is the django + celery deployment same for Google App Engine Flex?
The best of the best. Sir Mark, Thank you for the great content.
Thanks so much =)
Simply amazing!
Thanks mate appreciate it!
Very informative, but after typing the auth login command, it takes me to a page which reads "Access Block Authorization Error"
Thank you so much for this. Absolutely superb! Would love to see a follow up where linked to a DB service! Thanks again!
Great! Will keep it in mind. I do hope to make a tutorial using Cloud SQL at some point.
Thank you very much for this great tutorial Mark. Please make another video for deploying a Django app with Pstgresql db on google app engine.
I was wondering how we would go about adding envorionment varibales I currently just have a .env file in my app folder
I believe they can be configured in the GAE config.
Hey Mark great tutorials, having some issues getting docker compose to work. Followed the instructions to the tee, but getting permission denied: '/app/manage.py'. Any idea if any changes need to be made to run in debian?
similar issue for me too. running the "docker-compose ... colectstatic" I'm getting a permission denied '/static/admin/'
@@andynelson2340 my solution is delete static folder manually and run collectstatic, it works to me
very nice, excellent tutorial.
having alot of problems on windows. please can you do a windows tuts
Great tutorial Mark. You make look things so simple! Thank you for sharing this knowledge!.
My pleasure Gerardo, thanks so much for your support.
I am seeing a 500 server error. What should i do please suggest.
1- link to "Finished project on Github" does not Work. it says "page not found"
2- If my project has a local sqlite3 database, Does the method you mentioned still work without any additional steps ?
Thanks
Apologies, link to final project should work now, thank you for letting me know!
For the database, this guide doesn't cover database integration, but I'm thinking of covering it in my next tutorial... Unfortunately SQLite is not an option on GAE because the filesystem is not persistent.
You can use Cloud SQL which is a relatively expensive option (starts at about $10 per month I think), or you can use Datastore which is a NoSQL database offered by Google and has a free tier that would cover most low-traffic apps. The Cloud SQL option means you can use Django Admin and things like that, but requires a few extra deployment steps. If you have a preference on either of these, let me know and I'll try plan some content!
@@LondonAppDeveloper Thank you for your kind response and also Thank you for providing such good training contents.
I think "Google Cloud SQL option" is perfect for testing purpose and also for small project. I will be happy if you plan to create content related to this.
I do would like a Docker's dependencies tutorial on choosing deps for things like PostgreSQL, pillow, etc.., and docker scan Out-of-bounds Read vulnerabilities for securing the images.
Thanks for the feedback, I'll keep that in mind!
Hi Mark! Can we do these things for Laravel 8 as well?
Most likely yes, however I've not used Laravel before so I don't know for sure.
How to update the deployment ? Can you please extend the current video with this topic ?
You just modify the code and run the same deploy command to push it to App Engine.
@@LondonAppDeveloper which command is that? docker-compose -f docker-compose-deploy.yml ... "... auth login"? For me it logs "cannot find the file specified". Worked charming first time following along but idk how to re-init docker or basically get the command to work returning to it after some days ^^,
Hi, Mark! Greetings from California : ) this tutorial was insanely useful and I was wondering if, in the future, you could upload a video taking it a step further, using cloud storage to upload, process and store files? Cheers, man!
I got eror 400 in minute 50 , docker-compose…….. . I already login to GCP and have app engine. Someone has the solution ?
Maybe there are new ways to do the docker-compose run? When I try docker-compose run -rm app sh -c "django-admin startproject app ." I get a message "Run a one-off command on a service..." So I did it the old fashioned way:
python3.9 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r ./requirements.txt
django-admin startproject app .
docker-compose up
comand is not working
Thanks for the video :)
My pleasure!
@London App Developer can you add tutorial how add LOGGING in django with docker?
Thanks for the request. I'll add it to the list of content ideas and try and get to it soon!
Anybody facing the oauth invalid request issue in the authentication using google oauth screen, change the sdk to the latest in docker-compose-deploy.yml file to 453.0.0
OAuth should work after that
Thanks alot
Happy to help
It serves gunicorn and that is not compatible with Windows
Sir, please django advanced pro tuotorial Plz from india
What type of advanced topics are you interested in?
Django restful API, database management system, data filer, data graph representation, enterprise e-commerce website and django tuotorial also. Security, testing
I am seeing 500 server error after deployment.
Please help me
This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.
s u p r e m e
:-( 502 Bad Gateway
This is the error that I see in the logs: ModuleNotFoundError: No module named 'app.swgi'".
Does anyone have any pointers as to how fix this ?
Problem solved : it was a typo, of course... :-)
Damn typos!
@@LondonAppDeveloper Lol ! :-)
Well it proves that expression that goes like: "Most problems with computer programs and web apps are located between the keyboard and the chair' :-D
But.. in all seriousness, kudos to you, because your git repo enabled me to correct my own mistake :-)
400 bad request :(
Did you get anything in the log viewer on app engine?