Deploy Django Website to Google Cloud

preview_player
Показать описание
In this video we deploy a Django website to Google Cloud using the app engine standard environment.

Helpful links:

My Coding Gear:

My Camera Gear:

My Favorite Software:

Support Me:

Who Am I?

Connect With Me:

If you need to contact me, the best way is email. I try to respond to everyone but it may take some time!

Disclaimer: Some of the above links are affiliate links. This means I may receive a small commission at no expense to you. This allows me to continue to post videos like this one!

#django #googlecloud
Рекомендации по теме
Комментарии
Автор

Thank you! Reading the docs of google almost killed my desire to deploy there...Now, I find it easy!

marcc
Автор

@ 7:58, the updated version of the guide does not have instruction for the command -- glcoud services enable sqladmin. I entered it in the terminal anyway. ... ALSO, the Cloud proxy is curl/wget into the project folder. So you can do it right inside the VS Code terminal, and "ls" to check that it is there.

jamesr
Автор

Hi Ben you made it so easy. Any chance make a video in updating to a new version and deleting the old instance? I couldn't get my head around this. Cheers.

xinwealthtalk
Автор

Thanks for the video, I was struggling on my own reading Google doc.

sgvolpe
Автор

Hay, Ben. I'm using windows and I am stuck around 11:20 there is no CMD tabs only new windows any ideas how to get around this? I did 2 cmds and repeated the steps on both but, its giving me a 'cloud_sql_proxy.exe' is not recognized as an internal or external command.

lemono
Автор

Excelent, Very very thanks I have done the configuration and it works !!!

enricosaccheggiani
Автор

Thank you Ben. Please do a video on deploying Django website on Firebase.

subijoyacharya
Автор

Does Google suggest if you need to scale up? I'd like to host a dynamic website which requires some data processing

TheNoviceCreator
Автор

Thanks Benjamin, awesome video, finally been able to deploy on App Engine! Only one question, you say that on a change it would be better deleting the old files in order to not being charged, how could I do that? Thanks!

benjamincarafa
Автор

Hi Ben, thank you for your great video. It helps a lot.
When you set up your database in settings.py, why do you use your Google Cloud username/password inside the ELSE bracket? As far as I know, if there is no connection to the cloud (check in the IF bracket), django will direct to the local database (specified in the ELSE bracket). Therefore, should ELSE be populated with the information of the local database?

Harry-exmh
Автор

Thank you for the video, I was having trouble understating what steps I should take.
But one question after deployment how do I modify my domain name?

rogerioferreira
Автор

Hello, would like to ask why when i run it on local server using proxy it works fine and when i deploy it in app engine returns me 502 bad gateway nginx?

georgivelichin
Автор

Thanks mate...I was able to follow through till the end without any errors on windows. Thanks again.
Question: I thought the database used was MySQL, but the interface still looks like SqlLite, is that normal?

Hard_Tackle
Автор

Hi Ben, your tutorial is really great, but currently on my end I use PostgreSQL and I'm stuck on creating a secret key.

josephjohngalo
Автор

Thanks for the video, immensely helpful! I have a question about environment variables, if I understand correctly they should go into the `app.yaml` file but how to I keep this file from being exposed if my app is in a public github repo? Do I just `.gitignore` it for github and upload it separately into the gcloud project? I tried to read some docs about it but I'm not sure I understand how this would work.

dianalovette
Автор

@3.51, the downloaded SDK file is extracted within the same folder (Download), and yet the terminal pointing to home directory is able to run the install scripture. How does the script know where to find the extracted SDK folder?

jamesr
Автор

I got right to the end but when you replace placeholder [YOUR-USERNAME] etc. in settings.py DATABASES, that file was different for me (on Windows) none of those fields were there. idk if they updated it since this video. I tried to skip that part but then I couldn't do the next step... makemigrations. It just said No local .env or GOOGLE_CLOUD_PROJECT detected. No secrets found.

rubeushagrid
Автор

Hey ben, this worked for the django project that google had but it can't find the templates when I deployed my own django project.

mattn
Автор

Hi Ben! thanks for this video.
I'm having a troubleshoot:
after I made the diploy and trying to acces to the server, why appears : 502 Bad Gateway

I go to the app engine settings and it shows :
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
at
reap_workers
at
handle_chld
at
close
at
close_sockets
at
stop
at
halt
at
run
at
run
at
run
at
run
at
<module> (/env/bin/gunicorn:10)

If you could help me I'll be very greatful

Excuse my bad english

andrescifuentes
Автор

Thanks Ben. Very helpful. Any idea how much google would charge for a basic app like this? (after the free credits run out)

mlb