Skip to content

Commit

Permalink
docs: fix sample code on 'Serving the API' (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
miyashiiii authored Sep 8, 2023
1 parent 2a2723c commit 7b5a354
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/guide/views.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ you will be missing support for some interesting features, such as

Expose the strawberry API when using ASGI by setting your urls.py like this:

```{.python title=types.py}
from django.urls path
```{.python title=urls.py}
from django.urls import path
from strawberry.django.views import AsyncGraphQLView
from .schema import schema
Expand All @@ -27,8 +27,8 @@ urlpatterns = [

Expose the strawberry API when using WSGI by setting your urls.py like this:

```{.python title=types.py}
from django.urls path
```{.python title=urls.py}
from django.urls import path
from strawberry.django.views import GraphQLView
from .schema import schema
Expand Down

0 comments on commit 7b5a354

Please sign in to comment.