Skip to content

Commit 51adb36

Browse files
authored
Update readme with Django path (#720)
1 parent de98fb5 commit 51adb36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ GRAPHENE = {
3838
We need to set up a `GraphQL` endpoint in our Django app, so we can serve the queries.
3939

4040
```python
41-
from django.conf.urls import url
41+
from django.urls import path
4242
from graphene_django.views import GraphQLView
4343

4444
urlpatterns = [
4545
# ...
46-
url(r'^graphql$', GraphQLView.as_view(graphiql=True)),
46+
path('graphql', GraphQLView.as_view(graphiql=True)),
4747
]
4848
```
4949

@@ -100,4 +100,4 @@ To learn more check out the following [examples](examples/):
100100

101101
## Contributing
102102

103-
See [CONTRIBUTING.md](CONTRIBUTING.md)
103+
See [CONTRIBUTING.md](CONTRIBUTING.md)

0 commit comments

Comments
 (0)