-
Notifications
You must be signed in to change notification settings - Fork 769
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace calls to methods removed in Django v4 (#1275)
* Replace calls to deprecated methods * Fix test config & Replace additional methods removed in django 4.0 * Update tox for official Django 4 release * 2.16.0 * Revert version update * Remove duplicate entry Co-authored-by: Jeremy Stretch <jstretch@ns1.com> * Limit max Django version Co-authored-by: Jeremy Stretch <jstretch@ns1.com> * Remove Python 3.5 (deprecated) from tox Co-authored-by: Jeremy Stretch <jstretch@ns1.com> Co-authored-by: Ülgen Sarıkavak <ulgens@users.noreply.github.com> Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
- Loading branch information
1 parent
d52b18a
commit a7a8b3d
Showing
8 changed files
with
44 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from django.conf.urls import url | ||
from django.urls import re_path | ||
|
||
from ..views import GraphQLView | ||
|
||
urlpatterns = [ | ||
url(r"^graphql/batch", GraphQLView.as_view(batch=True)), | ||
url(r"^graphql", GraphQLView.as_view(graphiql=True)), | ||
re_path(r"^graphql/batch", GraphQLView.as_view(batch=True)), | ||
re_path(r"^graphql", GraphQLView.as_view(graphiql=True)), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from django.conf.urls import url | ||
from django.urls import re_path | ||
|
||
from ..views import GraphQLView | ||
from .schema_view import schema | ||
|
||
urlpatterns = [url(r"^graphql", GraphQLView.as_view(schema=schema, pretty=True))] | ||
urlpatterns = [re_path(r"^graphql", GraphQLView.as_view(schema=schema, pretty=True))] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters