<https://lh3.googleusercontent.com/-BGFl-PI21PQ/Wk6xkpDXL4I/AAAAAAAAABw/zFPH1OeWEQE9UbyJDMPIdmcgdothv2FfwCLcBGAs/s1600/2.png>

<https://lh3.googleusercontent.com/-b6fDLMhpm-Y/Wk6vyx2KU_I/AAAAAAAAABs/msrNlQ23bxQEOu86B28xR_yDqZSfoxEsQCLcBGAs/s1600/2.png>

<https://lh3.googleusercontent.com/-cdndXD4Om1g/Wk6vY9K3d5I/AAAAAAAAABo/FqyuyZ1rXvAruAqO426FF_g39No4EZ8GQCLcBGAs/s1600/1.png>
i was following the whole procedure from here using windows:
https://cloud.google.com/python/django/flexible-environment

1.step Download and run the app
using sdk commandline i did 

git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git
cd python-docs-samples\appengine/flexible\django_cloudsql


my current directory is C:\Users\vibe\AppData\Local\Google\Cloud 
SDK\python-docs-samples\appengine\flexible\django_cloudsql


2.Setting up your local environment


using sdk commandline i did 
gcloud auth application-default login  (authentication)

downloaded cloud_sql_proxy.exe  in C:\Users\vibe\AppData\Local\Google\Cloud 
SDK\python-docs-samples\appengine\flexible\django_cloudsql  this directory

gcloud sql instances describe [YOUR_INSTANCE_NAME]

cloud_sql_proxy.exe -instances="[YOUR_INSTANCE_CONNECTION_NAME]"=tcp:5432

3.Configure the database settings
i  edited mysite/settings.py

gcloud beta sql instances describe [YOUR_INSTANCE_NAME]


4.Run the app on your local computer
i did 

virtualenv env
env\scripts\activate
pip install -r requirements.txt

But when i did python manage.py makemigration



Its showing this error:


could not connect to *server*: Connection refused Is the *server running on 
host* “*localhost*” (*127.0.0.1) and accepting* TCP/IP connections on port 5432?

 
<https://lh3.googleusercontent.com/-BGFl-PI21PQ/Wk6xkpDXL4I/AAAAAAAAABw/zFPH1OeWEQE9UbyJDMPIdmcgdothv2FfwCLcBGAs/s1600/2.png>
























Can anyone please advise on how I can resolve this issue?

Thanks!




-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/00421973-da2d-45a3-92f7-d18d15c7e0f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine]... Dentals Canada

Reply via email to