Deploying Django to Google App Engine using Docker

แชร์
ฝัง

ความคิดเห็น • 78

  • @modibosanogo3491
    @modibosanogo3491 3 ปีที่แล้ว +6

    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!!! :-)

    • @LondonAppDeveloper
      @LondonAppDeveloper  3 ปีที่แล้ว +1

      Thanks so much, that's really kind of you to say.

  • @jonknight4616
    @jonknight4616 2 ปีที่แล้ว +2

    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.

  • @vostbur1
    @vostbur1 3 ปีที่แล้ว +2

    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.

  • @calebjebadurai
    @calebjebadurai 2 ปีที่แล้ว +1

    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.

  • @mimocrocodile5069
    @mimocrocodile5069 ปีที่แล้ว

    Many thanks
    As for databases with google cloud it would be great to see such a tutorial

  • @govindamukherjee8148
    @govindamukherjee8148 2 ปีที่แล้ว +1

    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.

  • @aliras2709
    @aliras2709 2 ปีที่แล้ว

    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

  • @ch.ajaysingh
    @ch.ajaysingh 2 ปีที่แล้ว

    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?

  • @rudigerheicappell572
    @rudigerheicappell572 3 ปีที่แล้ว +3

    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.

  • @saitaro
    @saitaro 3 ปีที่แล้ว

    I've been waiting for this for long!

    • @LondonAppDeveloper
      @LondonAppDeveloper  3 ปีที่แล้ว

      Great, let me know what you think.

    • @saitaro
      @saitaro 3 ปีที่แล้ว

      @@LondonAppDeveloper Will do, mate! Have you already got familiar with FastAPI by the way? Looks very promising, consider making a course on that!

    • @alexblack4684
      @alexblack4684 3 ปีที่แล้ว +1

      @@saitaro that would be awesome!

  • @김슬기-s4y
    @김슬기-s4y ปีที่แล้ว

    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

  • @lmarques1979
    @lmarques1979 3 ปีที่แล้ว

    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

  • @leonardos5208
    @leonardos5208 3 ปีที่แล้ว

    Great Video, however if I have more services(like celery) in my docker-compose,yml would that work in App engine?

  • @sola1412
    @sola1412 2 ปีที่แล้ว

    Is the django + celery deployment same for Google App Engine Flex?

  • @ashrayshiva9484
    @ashrayshiva9484 3 ปีที่แล้ว

    The best of the best. Sir Mark, Thank you for the great content.

  • @kenkioqqo
    @kenkioqqo ปีที่แล้ว

    Simply amazing!

  • @awanishmishra2679
    @awanishmishra2679 10 หลายเดือนก่อน

    Very informative, but after typing the auth login command, it takes me to a page which reads "Access Block Authorization Error"

  • @craigphollingsworth1460
    @craigphollingsworth1460 3 ปีที่แล้ว

    Thank you so much for this. Absolutely superb! Would love to see a follow up where linked to a DB service! Thanks again!

    • @LondonAppDeveloper
      @LondonAppDeveloper  3 ปีที่แล้ว

      Great! Will keep it in mind. I do hope to make a tutorial using Cloud SQL at some point.

  • @muratyigit9909
    @muratyigit9909 3 ปีที่แล้ว

    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.

  • @AngelHernandez-ex7ji
    @AngelHernandez-ex7ji 2 ปีที่แล้ว

    I was wondering how we would go about adding envorionment varibales I currently just have a .env file in my app folder

    • @LondonAppDeveloper
      @LondonAppDeveloper  2 ปีที่แล้ว

      I believe they can be configured in the GAE config.

  • @TheWeinbergHere
    @TheWeinbergHere 3 ปีที่แล้ว +1

    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?

    • @andynelson2340
      @andynelson2340 3 ปีที่แล้ว

      similar issue for me too. running the "docker-compose ... colectstatic" I'm getting a permission denied '/static/admin/'

    • @allen972523
      @allen972523 2 ปีที่แล้ว

      @@andynelson2340 my solution is delete static folder manually and run collectstatic, it works to me

  • @jairusmatthias3514
    @jairusmatthias3514 2 ปีที่แล้ว

    very nice, excellent tutorial.

  • @realdevdiv
    @realdevdiv 3 ปีที่แล้ว

    having alot of problems on windows. please can you do a windows tuts

  • @tatemo_labs
    @tatemo_labs 3 ปีที่แล้ว

    Great tutorial Mark. You make look things so simple! Thank you for sharing this knowledge!.

    • @LondonAppDeveloper
      @LondonAppDeveloper  3 ปีที่แล้ว

      My pleasure Gerardo, thanks so much for your support.

    • @mrrajputpalwal2434
      @mrrajputpalwal2434 3 ปีที่แล้ว

      I am seeing a 500 server error. What should i do please suggest.

  • @behjaf
    @behjaf 3 ปีที่แล้ว +1

    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

    • @LondonAppDeveloper
      @LondonAppDeveloper  3 ปีที่แล้ว

      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!

    • @behjaf
      @behjaf 3 ปีที่แล้ว

      @@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.

  • @ashrayshiva9484
    @ashrayshiva9484 3 ปีที่แล้ว

    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
      @LondonAppDeveloper  3 ปีที่แล้ว

      Thanks for the feedback, I'll keep that in mind!

  • @odsyazlmekibi9760
    @odsyazlmekibi9760 3 ปีที่แล้ว

    Hi Mark! Can we do these things for Laravel 8 as well?

    • @LondonAppDeveloper
      @LondonAppDeveloper  3 ปีที่แล้ว

      Most likely yes, however I've not used Laravel before so I don't know for sure.

  • @ashrayshiva9484
    @ashrayshiva9484 3 ปีที่แล้ว

    How to update the deployment ? Can you please extend the current video with this topic ?

    • @LondonAppDeveloper
      @LondonAppDeveloper  3 ปีที่แล้ว

      You just modify the code and run the same deploy command to push it to App Engine.

    • @rubeushagrid4208
      @rubeushagrid4208 3 ปีที่แล้ว

      @@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 ^^,

  • @ociehenderson1247
    @ociehenderson1247 3 ปีที่แล้ว

    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!

  • @dandayani4711
    @dandayani4711 10 หลายเดือนก่อน

    I got eror 400 in minute 50 , docker-compose…….. . I already login to GCP and have app engine. Someone has the solution ?

  • @brianarbuckle2284
    @brianarbuckle2284 3 ปีที่แล้ว

    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 .

  • @sunnysandhu8922
    @sunnysandhu8922 2 ปีที่แล้ว

    docker-compose up
    comand is not working

  • @alexblack4684
    @alexblack4684 3 ปีที่แล้ว

    Thanks for the video :)

  • @radekkrzyzak5970
    @radekkrzyzak5970 3 ปีที่แล้ว

    @London App Developer can you add tutorial how add LOGGING in django with docker?

    • @LondonAppDeveloper
      @LondonAppDeveloper  3 ปีที่แล้ว

      Thanks for the request. I'll add it to the list of content ideas and try and get to it soon!

  • @ViciousViction
    @ViciousViction ปีที่แล้ว

    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

  • @carthagely122
    @carthagely122 5 หลายเดือนก่อน

    Thanks alot

  • @bushraansari3538
    @bushraansari3538 ปีที่แล้ว

    It serves gunicorn and that is not compatible with Windows

  • @kamalCode
    @kamalCode 3 ปีที่แล้ว

    Sir, please django advanced pro tuotorial Plz from india

    • @LondonAppDeveloper
      @LondonAppDeveloper  3 ปีที่แล้ว

      What type of advanced topics are you interested in?

    • @kamalCode
      @kamalCode 3 ปีที่แล้ว

      Django restful API, database management system, data filer, data graph representation, enterprise e-commerce website and django tuotorial also. Security, testing

  • @mrrajputpalwal2434
    @mrrajputpalwal2434 3 ปีที่แล้ว

    I am seeing 500 server error after deployment.

    • @mrrajputpalwal2434
      @mrrajputpalwal2434 3 ปีที่แล้ว

      Please help me

    • @mrrajputpalwal2434
      @mrrajputpalwal2434 3 ปีที่แล้ว

      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.

  • @rubeushagrid4208
    @rubeushagrid4208 3 ปีที่แล้ว

    s u p r e m e

  • @Alexicoo
    @Alexicoo 3 ปีที่แล้ว

    :-( 502 Bad Gateway

    • @andersuitgelegd4605
      @andersuitgelegd4605 3 ปีที่แล้ว

      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 ?

    • @andersuitgelegd4605
      @andersuitgelegd4605 3 ปีที่แล้ว +1

      Problem solved : it was a typo, of course... :-)

    • @LondonAppDeveloper
      @LondonAppDeveloper  3 ปีที่แล้ว

      Damn typos!

    • @andersuitgelegd4605
      @andersuitgelegd4605 3 ปีที่แล้ว +1

      @@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 :-)

  • @florasblancas9921
    @florasblancas9921 3 ปีที่แล้ว

    400 bad request :(

    • @LondonAppDeveloper
      @LondonAppDeveloper  3 ปีที่แล้ว

      Did you get anything in the log viewer on app engine?