mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 00:49:49 +03:00
Update README.md
We should use path instead of url in urlpatterns
This commit is contained in:
parent
ca7674a4e0
commit
ee3ec83629
|
@ -89,7 +89,7 @@ Startup up a new project like so...
|
|||
Now edit the `example/urls.py` module in your project:
|
||||
|
||||
```python
|
||||
from django.conf.urls import url, include
|
||||
from django.urls import path, include
|
||||
from django.contrib.auth.models import User
|
||||
from rest_framework import serializers, viewsets, routers
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user