[google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-22 Thread 'Mohammad I (Cloud Platform Support)' via Google App Engine
Hello, I can see that you have already created an Issue Tracker (117804657) for this issue and that has been sent to Cloud SQL Engineering team for further investigation and they will update the progress on the issue tracker[1]. Please kindly note that, we cannot offer an ETA for a resolution

Re: [google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-20 Thread Attila-Mihaly Balazs
Lukas - sorry, I don't have any further ideas. The CloudSQL socket should be present there. I would suggest at this point to create a ticket in the issue tracker (https://issuetracker.google.com/) or contact Google Support. Sorry I can't be of more help, Attila -- You received this message bec

Re: [google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-19 Thread Lukas Elsner
This code: > class Variables(View): > def get(self, request): > data = {} > try: > data["cloudsql"] = os.listdir('/cloudsql') > except Exception as e: > data["cloudsql"] = str(e) > return JsonResponse(data) > > Leads to the following o

Re: [google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-16 Thread Attila-Mihaly Balazs
Yes, I can confirm that I can deploy the app from the linked GitHub repo and it can establish a database connection fine (this is the view I'm testing with: https://github.com/cdman/google-appengine-django-postgres-test/blob/master/mysite/urls.py#L29 - which does a "User.objects.count()"). Al

Re: [google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-16 Thread Lukas Elsner
Maybe the problem ist europe-west? Sent from a mobile On Tue, Oct 16, 2018, 9:27 AM Attila-Mihaly Balazs wrote: > The same here. I deployed this test project with App Engine Standard + > Python 3.7 + Postgres 9.6 (from CloudSQL): > https://github.com/cdman/google-appengine-django-postgres-test

[google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-16 Thread Lukas Elsner
Can you confirm, that you deployed a Django application and are able establish a database connection? (e.g. login). My App loads fine and all methods not needing the database are running. However, when trying to log into admin panel for example, I am getting the Error. I created an issue as we

[google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-16 Thread Lukas Elsner
Maybe the problem is europe-west? On Tuesday, 16 October 2018 08:27:15 UTC+2, Attila-Mihaly Balazs wrote: > > The same here. I deployed this test project with App Engine Standard + > Python 3.7 + Postgres 9.6 (from CloudSQL): > https://github.com/cdman/google-appengine-django-postgres-test > > P

[google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-15 Thread Attila-Mihaly Balazs
The same here. I deployed this test project with App Engine Standard + Python 3.7 + Postgres 9.6 (from CloudSQL): https://github.com/cdman/google-appengine-django-postgres-test Perhaps looking at settings.py will give you some idea: https://github.com/cdman/google-appengine-django-postgres-test

[google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-15 Thread 'Olu' via Google App Engine
Attempt to replicate the issue was ineffective. We tested our Django for App Engine Python 3.7 sample and found no issues. Our recommendation would be to either create an issue on the Issue tracker or better still, contact GAE Support

[google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-15 Thread Lukas Elsner
Hi Chen yes it is the same Project (and same region). If I change my deployment to Flex, I have no problems with the connection. Thus, I suppose, it has something to do with Standard Environment. :( Thank you Lukas On Monday, 15 October 2018 14:21:20 UTC+2, Chen Yu wrote: > > Hi Lukas, > > The

[google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-15 Thread 'Chen Yu' via Google App Engine
Hi Lukas, The local socket (/cloudsql/CONNECTION-NAME) is supposed to work; we will update the documentation soon and you will see similar instructions there as well. In fact, the sample for using Cloud SQL with App Engine Python 3.7 runtime is already pushed to our GitHub repo

[google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-14 Thread Lukas Elsner
@Attila-Mihaly Balazs In https://github.com/GoogleCloudPlatform/python-docs-samples/issues/870 they are talking about Flex, but I

[google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-14 Thread 'Chen Yu' via Google App Engine
Hi Lukas, Thanks fo getting back to us! The settings.py file looks alright; if possible, would you mind double-checking the DB_HOST environment variable in app.yaml? It should be of the `/cloudsql/YOUR-CONNECTION-NAME` format (e.g. /cloudsql/my-project:us-central1:my-sql-instance). Additionally

[google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-14 Thread Attila-Mihaly Balazs
Hi, AFAIK PostgreSQL is not available under AppEngine standard if you're using Python 2.7 since the driver is not / can not be installed (Psycopg2). If you're using AppEngine standard "second generation" runtime with Python 3 you should be able to get it working by making sure the right package

[google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-12 Thread Lukas Elsner
> > > web_dir = > (os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), > os.pardir))) > src_dir = (os.path.abspath(os.path.join(web_dir, os.pardir))) > lib_dir = os.path.join(src_dir, "lib") > """ > """ > sys.path.append(lib_dir) > > # Build paths inside the project like thi

Re: [google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-12 Thread Lukas Elsner
For some reason, my last Post got lost. :( Trying again. Here my settings.py import os > > import sys > > >> web_dir = >> (os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), >> os.pardir))) > > src_dir = (os.path.abspath(os.path.join(web_dir, os.pardir))) > > lib_dir = os.p

Re: [google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-12 Thread 'Chen Yu' via Google App Engine
Hi Lukas, It is a little difficult to say for sure where your app goes wrong with the information you have provided. If possible, can you post (or contact me directly if you prefer) your `settings.py`? Thanks. Chen On Friday, October 12, 2018 at 6:49:11 AM UTC-7, Lukas Elsner wrote: > > Hi :)

Re: [google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-12 Thread Lukas Elsner
Hi :) Thank you for your answer. I am actually not using Node.js. This is a Django (Python) application. I tried everything Google mentions in the documentation. Still no luck with DB-Connection :( Cheers Lukas On Fri, 12 Oct 2018 at 15:29, 'George (Cloud Platform Support)' via Google App Engin

[google-appengine] Re: Django with postgresl on App Engine Standard

2018-10-12 Thread 'George (Cloud Platform Support)' via Google App Engine
Hello Lukas, You should concentrate on your node.js code, rather than on app.yaml configuration, and beta settings. The "Using Cloud SQL for PostgreSQL" documentation page