Open utterances-bot opened 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.
hi @lastmaj, thanks for catching that! I edited the article and fixed that port number.
thank you for the quick reply, and thanks again for this informative, fun walkthrough!
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
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/