From 3eb8691eec88f1df663c71d15b2cadc0efeb2933 Mon Sep 17 00:00:00 2001 From: Semyon Pupkov Date: Tue, 3 Dec 2019 14:07:26 +0500 Subject: [PATCH] Fix start app - pin graphene-django version - fix lib error should be only two backends --- requirements_base.txt | 2 +- swapi_graphene/settings.py | 2 +- swapi_graphene/urls.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/requirements_base.txt b/requirements_base.txt index 254f783..ab5d4eb 100644 --- a/requirements_base.txt +++ b/requirements_base.txt @@ -1,5 +1,5 @@ Django==1.11.13 -graphene-django>=2.1rc1 +graphene-django==2.1rc1 django-filter==1.1.0 django-environ==0.4.4 # debug_toolbar diff --git a/swapi_graphene/settings.py b/swapi_graphene/settings.py index d2bbab1..0eae557 100644 --- a/swapi_graphene/settings.py +++ b/swapi_graphene/settings.py @@ -25,7 +25,7 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ['*'] # Application definition diff --git a/swapi_graphene/urls.py b/swapi_graphene/urls.py index ee91966..0faebc6 100644 --- a/swapi_graphene/urls.py +++ b/swapi_graphene/urls.py @@ -33,9 +33,9 @@ def static(prefix, view=serve, **kwargs): ] backend = GraphQLDeciderBackend([ - # GraphQLCachedBackend(GraphQLQuiverCloudBackend( - # 'https://******@api.graphql-quiver.com' - # )), + GraphQLCachedBackend(GraphQLQuiverCloudBackend( + 'https://******@api.graphql-quiver.com' + )), GraphQLCoreBackend() ])