diff --git a/README.md b/README.md index 2a9daae1818de95b962ea385a6cb707790b9b4da..f4ba31b3e24a3d5e2107c39b4fb42c4037abee9f 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ It aims at enabling people with little development skills to serve their own dat 1. Add this module to your application, or place it in a directory included in your PYTHONPATH 2. Create your model normally 3. Add a url in your urls.py: + ``` from djangoldp.views import LDPViewSet from .models import MyModel @@ -24,6 +25,7 @@ urlpatterns = [ url(r'^admin/', admin.site.urls), ] ``` + This creates 2 routes, one for the list, and one with an ID listing the detail of an object. ## License