mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-02 11:30:12 +03:00
Fix import in code example
Fixed the import statement in tutorial part 6 for the path() and include() functions.
This commit is contained in:
parent
2786f1b023
commit
1d0338cff1
|
@ -105,7 +105,7 @@ Because we're using `ViewSet` classes rather than `View` classes, we actually do
|
|||
|
||||
Here's our re-wired `snippets/urls.py` file.
|
||||
|
||||
from django.conf.urls import url, include
|
||||
from django.urls import path, include
|
||||
from rest_framework.routers import DefaultRouter
|
||||
from snippets import views
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user