From b89a731064aabfc58b6dda48934c67f8b6f04569 Mon Sep 17 00:00:00 2001 From: Alexandre <alexandre@happy-dev.fr> Date: Sun, 21 Jan 2018 10:31:50 +0000 Subject: [PATCH] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2a9daae1..f4ba31b3 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 -- GitLab