saltycrane / saltycrane-blog-comments

Comments for my blog powered by utterances
https://www.saltycrane.com/blog/
0 stars 0 forks source link

blog/2019/02/creating-graphql-api-python-graphene-and-postgres/ #28

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

Creating a GraphQL API with Python, Graphene, and Postgres - SaltyCrane Blog

https://www.saltycrane.com/blog/2019/02/creating-graphql-api-python-graphene-and-postgres/

lastmaj commented 4 years ago

great read,

i would like to point an error : under Configure Django to use Postgres,

DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql_psycopg2", "NAME": "travelog", "USER": "traveloguser", "PASSWORD": "mypassword, "HOST": "localhost", "PORT": "54320", } }

PORT should be "54321" to map correctly to the docker service we created earlier.

saltycrane commented 4 years ago

hi @lastmaj, thanks for catching that! I edited the article and fixed that port number.

lastmaj commented 4 years ago

thank you for the quick reply, and thanks again for this informative, fun walkthrough!

bastianhilton commented 3 years ago

i noticed in your schema.py file you didn't need to add fields = ("id", etc etc), is there no need to add this? The reason i ask is because i see it being used from the official graphene website