We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32667b5 commit 5d5d7f1Copy full SHA for 5d5d7f1
.github/workflows/tests.yml
@@ -10,7 +10,13 @@ jobs:
10
matrix:
11
django: ["2.2", "3.0", "3.1", "3.2"]
12
python-version: ["3.6", "3.7", "3.8", "3.9"]
13
-
+ include:
14
+ - django: "3.2"
15
+ python-version: "3.10"
16
+ - django: "4.0"
17
18
+ - django: "main"
19
20
steps:
21
- uses: actions/checkout@v2
22
- name: Set up Python ${{ matrix.python-version }}
README.md
@@ -55,7 +55,7 @@ from graphene_django.views import GraphQLView
55
56
urlpatterns = [
57
# ...
58
- path('graphql', GraphQLView.as_view(graphiql=True)),
+ path('graphql/', GraphQLView.as_view(graphiql=True)),
59
]
60
```
61
docs/authorization.rst
@@ -198,7 +198,7 @@ For Django 2.2 and above:
198
199
200
# some other urls
201
- path('graphql', PrivateGraphQLView.as_view(graphiql=True, schema=schema)),
+ path('graphql/', PrivateGraphQLView.as_view(graphiql=True, schema=schema)),
202
203
204
.. _LoginRequiredMixin: https://docs.djangoproject.com/en/dev/topics/auth/default/#the-loginrequired-mixin
graphene_django/debug/exception/formating.py
@@ -11,7 +11,7 @@ def wrap_exception(exception):
exc_type=force_str(type(exception)),
stack="".join(
traceback.format_exception(
- etype=type(exception), value=exception, tb=exception.__traceback__
+ exception, value=exception, tb=exception.__traceback__
)
),
graphene_django/management/commands/graphql_schema.py
@@ -48,7 +48,7 @@ def add_arguments(self, parser):
48
class Command(CommandArguments):
49
help = "Dump Graphene schema as a JSON or GraphQL file"
50
can_import_settings = True
51
- requires_system_checks = False
+ requires_system_checks = []
52
53
def save_json_file(self, out, schema_dict, indent):
54
with open(out, "w") as outfile:
graphene_django/tests/urls.py
@@ -1,8 +1,8 @@
1
-from django.conf.urls import url
+from django.urls import path
2
3
from ..views import GraphQLView
4
5
6
- url(r"^graphql/batch", GraphQLView.as_view(batch=True)),
7
- url(r"^graphql", GraphQLView.as_view(graphiql=True)),
+ path("graphql/batch", GraphQLView.as_view(batch=True)),
+ path("graphql", GraphQLView.as_view(graphiql=True)),
8
graphene_django/tests/urls_inherited.py
@@ -1,4 +1,4 @@
from .schema_view import schema
@@ -10,4 +10,4 @@ class CustomGraphQLView(GraphQLView):
pretty = True
-urlpatterns = [url(r"^graphql/inherited/$", CustomGraphQLView.as_view())]
+urlpatterns = [path("graphql/inherited/", CustomGraphQLView.as_view())]
graphene_django/tests/urls_pretty.py
@@ -1,6 +1,6 @@
-urlpatterns = [url(r"^graphql", GraphQLView.as_view(schema=schema, pretty=True))]
+urlpatterns = [path("graphql", GraphQLView.as_view(schema=schema, pretty=True))]
graphene_django/utils/testing.py
@@ -3,7 +3,7 @@
from django.test import Client, TestCase, TransactionTestCase
-DEFAULT_GRAPHQL_URL = "/graphql/"
+DEFAULT_GRAPHQL_URL = "/graphql"
9
def graphql_query(
tox.ini
@@ -1,6 +1,8 @@
[tox]
envlist =
- py{36,37,38,39}-django{22,30,31,32,main},
+ py{36,37,38,39}-django{22,30,31},
+ py{36,37,38,39,310}-django32,
+ py{38,39,310}-django{40,main},
black,flake8
[gh-actions]
@@ -9,13 +11,15 @@ python =
3.7: py37
3.8: py38
3.9: py39
+ 3.10: py310
[gh-actions:env]
DJANGO =
2.2: django22
3.0: django30
3.1: django31
3.2: django32
+ 4.0: django40
23
main: djangomain
24
25
[testenv]
@@ -26,12 +30,11 @@ setenv =
26
30
deps =
27
31
-e.[test]
28
32
psycopg2-binary
29
- django20: Django>=2.0,<2.1
- django21: Django>=2.1,<2.2
33
django22: Django>=2.2,<3.0
- django30: Django>=3.0a1,<3.1
34
+ django30: Django>=3.0,<3.1
35
django31: Django>=3.1,<3.2
- django32: Django>=3.2a1,<3.3
36
+ django32: Django>=3.2,<4.0
37
+ django40: Django>=4.0,<4.1
38
djangomain: https://github.com/django/django/archive/main.zip
39
commands = {posargs:py.test --cov=graphene_django graphene_django examples}
40
0 commit comments