summaryrefslogtreecommitdiff
path: root/saleor/urls.py
diff options
context:
space:
mode:
authorMarcin Gębala <maarcin.gebala@gmail.com>2017-01-19 13:42:54 +0100
committerMarcin Gębala <maarcin.gebala@gmail.com>2017-01-23 16:21:14 +0100
commitce02f48ea85b64a5a4503b22d3fb324c521904d0 (patch)
tree138c5920649284b628b3cb550e86032d79fed488 /saleor/urls.py
parentb4ef179cf41bb9677996249358ca6304bf22ea98 (diff)
downloadsaleor-frontend-ce02f48ea85b64a5a4503b22d3fb324c521904d0.tar.gz
saleor-frontend-ce02f48ea85b64a5a4503b22d3fb324c521904d0.tar.bz2
saleor-frontend-ce02f48ea85b64a5a4503b22d3fb324c521904d0.zip
Enable graphiql only when DEBUG=True
Diffstat (limited to 'saleor/urls.py')
-rw-r--r--saleor/urls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/saleor/urls.py b/saleor/urls.py
index ab636f98..fb1dad36 100644
--- a/saleor/urls.py
+++ b/saleor/urls.py
@@ -27,7 +27,7 @@ urlpatterns = [
url(r'^cart/', include(cart_urls, namespace='cart')),
url(r'^checkout/', include(checkout_urls, namespace='checkout')),
url(r'^dashboard/', include(dashboard_urls, namespace='dashboard')),
- url(r'^graphql', GraphQLView.as_view(graphiql=True)),
+ url(r'^graphql', GraphQLView.as_view(graphiql=settings.DEBUG)),
url(r'^order/', include(order_urls, namespace='order')),
url(r'^products/', include(product_urls, namespace='product')),
url(r'^profile/', include(userprofile_urls, namespace='profile')),