diff --git a/README.md b/README.md index 4d341e636..6cd4e86c7 100644 --- a/README.md +++ b/README.md @@ -90,9 +90,10 @@ Startup up a new project like so... Now edit the `example/urls.py` module in your project: ```python -from django.urls import path, include from django.contrib.auth.models import User -from rest_framework import serializers, viewsets, routers +from django.urls import include, path +from rest_framework import routers, serializers, viewsets + # Serializers define the API representation. class UserSerializer(serializers.HyperlinkedModelSerializer): @@ -111,7 +112,6 @@ class UserViewSet(viewsets.ModelViewSet): router = routers.DefaultRouter() router.register(r'users', UserViewSet) - # Wire up our API using automatic URL routing. # Additionally, we include login URLs for the browsable API. urlpatterns = [