Everyone without login can access photos for free
Only Administrator can do that
Only Administrator can do that you can upload at most 5 photos at the same time
Administrator can give every each of photo description
Create PostgreSQL in Cloud SQL
gcloud sql instances create postgre \
--activation-policy=ALWAYS \
--database-version=POSTGRES_14 \
--region=asia-east2 \
--tier=db-n1-standard-1
Create Database in Cloud SQL
gcloud sql databases create webalbum --instance postgre
After created checking database is alive in your project
gcloud sql databases list --instance webalbum
Setup Database Management System root password
gcloud sql users set-password root \
--host=% \
--instance webalbum \
--password=PASSWORD
Enter the follow commands in Cloud Shell
wget https://dl.google.com/cloudsql/cloud_sql_proxy.linux.amd64 -O cloud_sql_proxy
chmod +x cloud_sql_proxy
cloud_sql_proxy -instances=<YOUR_PROJECT_ID>:us-central1:postgre=tcp:5432
gcloud app create
.env file must create in local project
DJANGO_SECRET_KEY =
DEBUG = True
POSTGRES_DB =
POSTGRES_USER =
POSTGRES_PASSWORD =
POSTGRES_DB_URL =
GAE_APPLICATION = False
Note:
- Google App Engine not support pipenv don,t use pipenv to manage your dependencies